A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
The REST API provides both SET (/admin/api/2021-10/inventory_levels/set.json) quantity and ADJUST (/admin/api/2021-10/inventory_levels/adjust.json). However with GRAPHQL looks like only the Inventory ADJUST API is available, is the understanding correct? if not then could anyone please provide the link for the SET as well.
Hey @sanjuthakur,
There are some examples of functionality differences between the REST and GraphQL APIs and you are correct about handling inventory via API. This doc outlines all of the currently available Inventory mutations in GraphQL, which for level changes would be done using inventory
If you are interested in tracking changes and updates to our API - I'd suggest subscribing to our Developer Changelog. Alternatively, you can track API release notes about new features and deprecations here!
- Cheers!
awwdam | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog