Skip to main content
Anchor to ProductVariantsBulkCreateUserError

ProductVariantsBulkCreateUserError

object

Requires read_products access scope.

Error codes for failed product variant bulk create mutations.

•ProductVariantsBulkCreateUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

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

Arguments

•[CreateMediaInput!]

List of new media to be added to the product.

•ID!required

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

•ProductVariantsBulkCreateStrategyDefault:DEFAULT

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.

•[ProductVariantsBulkInput!]!required

An array of product variants to be created.


Fields

•Product

The updated product object.

•[ProductVariant!]

The newly created variants.

•[ProductVariantsBulkCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?