I was wondering if there was an efficient way to update multiple inventory items in one POST query? I am currently using the endpoint /admin/api/2021-07/inventory_levels/set.json but it seems very inefficient to update each variant individually when doing a stock check when it could easily done by sending through a larger dataset to the POST query.
Does anyone have any idea how I can do this. The documentation doesn't seem to cover it.
This might not be the answer you are looking for, but this is one of the situations where we tend to strongly recommend taking advantage of GraphQL over REST. The greater flexibility in call structure as well as the possibilities offered through our bulk query operations allow for you to do this much more easily than you would otherwise be able to via REST