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 productVariantsBulkCreate

productVariantsBulkCreate

mutation

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

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

List of new media to be added to the product.

ID!required

The ID of the product on which to create the variants.

The strategy defines which behavior the mutation should observe, such as whether to keep or delete the standalone variant (when product has only a single or default variant) when creating new variants in bulk.

An array of product variants to be created.


Was this section helpful?

Anchor to ProductVariantsBulkCreatePayload returnsProductVariantsBulkCreatePayload returns

The updated product object.

The newly created variants.

The list of errors that occurred from executing the mutation.


Was this section helpful?