The updatePackageFromZip() GraphQL mutation is used to update a package from a file provided in multipart/form-data (i.e., name=file) in a specified view.

For more information on packages, see the Packages documentation page.

Syntax

Below is the syntax for the updatePackageFromZip() mutation field:

graphql
updatePackageFromZip(
      viewName: String!
      conflictResolutions: [ConflictResolutionConfiguration!]!
      queryOwnershipType: QueryOwnershipType = User
   ): BooleanResultType!

Given Datatypes

For the given datatype, ConflictResolutionConfiguration, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: ConflictResolutionConfiguration

ParameterTypeRequired[a]DefaultDescription
entityTypeAssetTypeyes The type of entity. The datatype, RepoOrViewName is a scalar.
entityNamestringyes The name of the entity. The type, VersionedPackageSpecifier is a scalar.
conflictResolutionMergeStrategyyes How conflicts are resolved. This is an enumerated list with two choices: Theirs, or Ours.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.


Returned Datatypes

The returned datatype BooleanResultType has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: BooleanResultType

ParameterTypeRequired[a]DefaultDescription
resultsbooleanyes Whether the mutation was performed or not.

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.