Skip to main content

productVariantStocksCreate Mutation

Creates stocks for product variant.

Requires the MANAGE_PRODUCTSpermission.
productVariantStocksCreate(
stocks: [StockInput!]!
variantId: ID!
): ProductVariantStocksCreate
Details
type ProductVariantStocksCreate {
productVariant: ProductVariant
bulkStockErrors: [BulkStockError!]! @deprecated
errors: [BulkStockError!]!
}

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.