---
title: StockBulkUpdate Object
seo:
  title: StockBulkUpdate Object
  description: 'Object: StockBulkUpdate Object'
slug: api-reference/products/objects/stock-bulk-update
sidebar:
  label: StockBulkUpdate
search:
  tags:
    - API reference
    - Products
lastModified: '2026-04-13'
---

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 one of the following permissions: `MANAGE_PRODUCTS`.



Triggers the following webhook events:
- PRODUCT_VARIANT_STOCK_UPDATED (async): A product variant stock details were updated.



**Applied directives**

```graphql
@webhookEventsInfo(asyncEvents: [PRODUCT_VARIANT_STOCK_UPDATED], syncEvents: [])
```



```graphql
type StockBulkUpdate {
  count: Int!
  results: [StockBulkResult!]!
  errors: [StockBulkUpdateError!]!
}
```


## Fields

### count [#count]

**`count`** · [`Int!`](/api-reference/miscellaneous/scalars/int)

Returns how many objects were updated.
### results [#results]

**`results`** · [`[StockBulkResult!]!`](/api-reference/products/objects/stock-bulk-result)

List of the updated stocks.
### errors [#errors]

**`errors`** · [`[StockBulkUpdateError!]!`](/api-reference/products/objects/stock-bulk-update-error)



## Used by

- [stockBulkUpdate (mutations)](/api-reference/products/mutations/stock-bulk-update)

---

Schema: **Saleor 3.23.43**. [Download SDL](/schema/saleor.graphql).
