How to change the following inventory quantity in a shopify store using api.

Please refer the below API documentation for inventory.

https://shopify.dev/docs/api/admin-rest/2023-07/resources/product

https://shopify.dev/docs/api/admin-rest/2023-07/resources/inventoryitem#resource-object

Hope this will help…