How to add a new location when updating a product

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):

Graphql:

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