Skip to main content

stockBulkUpdate Mutation

Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.

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 miscellaneous

Policies of error handling. DEFAULT: REJECT_EVERYTHING

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

Input list of stocks to update.

Type

StockBulkUpdate object products

Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.

Requires MANAGE_PRODUCTSpermission.

Triggers the following webhook events:

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