Skip to main content

productVariantStocksUpdate

Update stocks for product variant.

Requires MANAGE_PRODUCTSpermission.
productVariantStocksUpdate(
sku: String
stocks: [StockInput!]!
variantId: ID
): ProductVariantStocksUpdate

Arguments

productVariantStocksUpdate.sku ● String scalar miscellaneous

SKU of product variant for which stocks will be updated.

productVariantStocksUpdate.stocks ● [StockInput!]! non-null input products

Input list of stocks to create or update.

productVariantStocksUpdate.variantId ● ID scalar miscellaneous

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

Type

ProductVariantStocksUpdate object products

Update stocks for product variant.

Requires MANAGE_PRODUCTSpermission.