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
   ): 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

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
conflictResolutionMergeStrategyyes How conflicts are resolved. See MergeStrategy.
entityNamestringyes The name of the entity. The type, VersionedPackageSpecifier is a scalar.
entityTypeAssetTypeyes The type of entity. See AssetType.

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

ParameterTypeRequiredDefaultDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
resultsbooleanyes Whether the mutation was performed.