Anchor to section titled 'undefined'

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.


Anchor to allowPartialUpdates
allowPartialUpdates
default: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.

Anchor to productId
productId
required

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

An array of product variants to update.


Was this section helpful?

The updated product object.

The list of errors that occurred from executing the mutation.


Was this section helpful?