# Bulk update inventory quantities using inventorySetQuantities

**URL:** <https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081>\
**Category:** New Graphql Product Apis\
**Tags:** Product-Ideas, Product-Tips, Setting-Up\
**Created:** [June 24, 2024, 8:24pm UTC](https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081 "2024-06-24T20:24:48Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

Using the inventorySetQuantities mutation (Admin GraphQL 2024-07) to update large numbers of inventory items. The original questions: 1) how many quantity updates can be sent per request, and 2) whether it’s supported by Shopify’s Bulk Operation import.

Latest findings:
- Bulk Operation: Not supported. A test confirmed inventorySetQuantities cannot run as a bulk mutation via the bulk operations/imports API.
- Per-request limit: Not documented in public docs. A community reply indicates a practical limit of 250 quantity updates per request.
- Performance report: One implementer updates ~10,000 items by batching 100 per call in about 20 seconds.

Implications/notes:
- Large-scale updates are feasible by batching standard mutations (e.g., 100–250 per call) rather than using bulk operations.
- There is no official confirmation on the exact maximum batch size; 250 is community guidance.

Status: Partially answered. Bulk support is ruled out; the precise, officially documented per-request limit remains unclear. The original poster may test and share results later.

<div class="post-metadata">

**Author:** ![JustinKillian](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@JustinKillian](https://community.shopify.com/u/JustinKillian)\
**Post date:** [June 24, 2024, 8:24pm UTC](https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081/1 "2024-06-24T20:24:48Z")

</div>

Hello there,

My app requires to update inventory quantities for (potentially) thousands of inventory items at a time.

I am looking at the mutation [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) which is available in the GraphQL API version 2024-07 and I have a couple of questions that I can’t answer by looking at the public docs:

- How many quantities can I update with a single [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) mutation? The param `quantities` is an array but it does not mention any limits. Would it work with thousands of updates?

- Is the [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) supported as bulk mutation? I do not see it in the bulk mutation list ([https://shopify.dev/docs/api/usage/bulk-operations/imports#limitations)](https://shopify.dev/docs/api/usage/bulk-operations/imports#limitations)) but double checking if it is or will be available soon

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![JustinKillian](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@JustinKillian](https://community.shopify.com/u/JustinKillian)\
**Post date:** [June 25, 2024, 2:40pm UTC](https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081/2 "2024-06-25T14:40:18Z")

</div>

Update:

For those interested, I tried to the [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) in a bulk mutation and it does not work. The only question to answer now is, how many quantities can I update with a single [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) mutation?

I may try that later and will post it.

Cheers.

---

<div class="post-metadata">

**Author:** ![cloudev0](https://avatars.discourse-cdn.com/v4/letter/c/73ab20/32.png) [@cloudev0](https://community.shopify.com/u/cloudev0)\
**Post date:** [July 11, 2024, 1:46am UTC](https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081/3 "2024-07-11T01:46:59Z")

</div>

I’m using [inventorySetQuantities](https://shopify.dev/docs/api/admin-graphql/2024-07/mutations/inventorySetQuantities?example=Setting+available+quantity+at+a+location+without+compare-and-swap+%28CAS%29+enabled) as well, the limit per request should be 250. Wish it was supported in bulk mutation though.

---

<div class="post-metadata">

**Author:** ![james148](https://yyz1.discourse-cdn.com/shopifyforum/user_avatar/community.shopify.com/james148/32/129283_2.png) [@james148](https://community.shopify.com/u/james148)\
**Post date:** [July 18, 2024, 9:46am UTC](https://community.shopify.com/t/bulk-update-inventory-quantities-using-inventorysetquantities/334081/4 "2024-07-18T09:46:41Z")

</div>

For anyone interested we’re able to update ~10k using this API in batches of 100 in about 20 seconds.
