Skip to main content

StockBulkUpdate Object

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.
type StockBulkUpdate {
count: Int!
results: [StockBulkResult!]!
errors: [StockBulkUpdateError!]!
}

Fields

StockBulkUpdate.count ● Int! non-null scalar miscellaneous

Returns how many objects were updated.

StockBulkUpdate.results ● [StockBulkResult!]! non-null object products

List of the updated stocks.

StockBulkUpdate.errors ● [StockBulkUpdateError!]! non-null object products

Returned By

stockBulkUpdate mutation