Skip to main content
Version: Canary 🚧

productVariantBulkCreate

Creates product variants for a given product.

Requires MANAGE_PRODUCTSpermission.
productVariantBulkCreate(
errorPolicy: ErrorPolicyEnum
product: ID!
variants: [ProductVariantBulkCreateInput!]!
): ProductVariantBulkCreate

Arguments

productVariantBulkCreate.errorPolicy ● ErrorPolicyEnum enum

Policies of error handling. DEFAULT: REJECT_EVERYTHING

Added in Saleor 3.11
This API is currently in Feature Preview and can be subject to changes at later point.

productVariantBulkCreate.product ● ID! non-null scalar

ID of the product to create the variants for.

productVariantBulkCreate.variants ● [ProductVariantBulkCreateInput!]! non-null input

Input list of product variants to create.

Type

ProductVariantBulkCreate object

Creates product variants for a given product.

Requires MANAGE_PRODUCTSpermission.

Was this page helpful?