How to add a new location when updating a product

How to add a new location when updating a product

Volodya_pr
Shopify Partner
3 0 0

For some reason, when I write a new location ID that hasn't been in the product before, it doesn't get added. It only works if I manually add the location in the admin panel.

I'm updating using the bulk GraphQL API. (screenshot):

Volodya_pr_0-1710319476175.png

Graphql:

"inventoryQuantities": [{"availableQuantity": 322, "locationId": "gid://shopify/Location/97027293497"}]

 

Replies 0 (0)