Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to productVariantsBulkUpdate

productVariantsBulkUpdate

mutation

Requires write_products access scope. Also: The user must have a permission to update product variants.

Updates multiple variants in a single product. This mutation can be called directly or via the bulkOperation.

BooleanDefault:false

When partial updates are allowed, valid variant changes may be persisted even if some of the variants updated have invalid data and cannot be persisted. When partial updates are not allowed, any error will prevent all variants from updating.

List of new media to be added to the product.

ID!required

The ID of the product associated with the variants to update.

An array of product variants to update.


Was this section helpful?

Anchor to ProductVariantsBulkUpdatePayload returnsProductVariantsBulkUpdatePayload returns

The updated product object.

The updated variants.

The list of errors that occurred from executing the mutation.


Was this section helpful?