Skip to main content
Version: 3.x

productVariantBulkCreate

Creates product variants for a given product.

Requires one of the following permissions: MANAGE_PRODUCTS.

productVariantBulkCreate(
product: ID!
variants: [ProductVariantBulkCreateInput!]!
): ProductVariantBulkCreate

Arguments

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 one of the following permissions: MANAGE_PRODUCTS.