Skip to main content

productVariantStocksCreate Mutation

Creates stocks for product variant.

Requires the MANAGE_PRODUCTSpermission.
productVariantStocksCreate(
stocks: [StockInput!]!
variantId: ID!
): ProductVariantStocksCreate
Show return type

Arguments

stocks ● [StockInput!]!

Input list of stocks to create.

variantId ● ID!

ID of a product variant for which stocks will be created.

Type

ProductVariantStocksCreate

Creates stocks for product variant.

Requires the MANAGE_PRODUCTSpermission.