Skip to main content

productVariantBulkCreate

Creates product variants for a given product.

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

Arguments

productVariantBulkCreate.errorPolicy ● ErrorPolicyEnum enum miscellaneous

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 miscellaneous

ID of the product to create the variants for.

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

Input list of product variants to create.

Type

ProductVariantBulkCreate object products

Creates product variants for a given product.

Requires MANAGE_PRODUCTSpermission.