Skip to main content
Version: 3.x

stockBulkUpdate

Updates stocks for a given variant and warehouse.

Added in Saleor 3.13
This API is currently in Feature Preview and can be subject to changes at later point.
Requires MANAGE_PRODUCTSpermission.

Triggers the following webhook events:

  • PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated.
stockBulkUpdate(
errorPolicy: ErrorPolicyEnum
stocks: [StockBulkUpdateInput!]!
): StockBulkUpdate

Arguments

stockBulkUpdate.errorPolicy ● ErrorPolicyEnum enum

Policies of error handling. DEFAULT: REJECT_EVERYTHING

stockBulkUpdate.stocks ● [StockBulkUpdateInput!]! non-null input

Input list of stocks to update.

Type

StockBulkUpdate object

Updates stocks for a given variant and warehouse.

Added in Saleor 3.13
This API is currently in Feature Preview and can be subject to changes at later point.
Requires MANAGE_PRODUCTSpermission.

Triggers the following webhook events:

  • PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated.

Was this page helpful?