Just to clarify, you need to use the 2024-07 or later version of the API for the InventorySetQuantitiesInput to work.
Topic summary
Issue: inventorySetQuantities mutation fails with errors that InventorySetQuantitiesInput isn’t a defined input type and the field inventorySetQuantities doesn’t exist on Mutation.
Context: The author successfully used inventoryAdjustQuantities and inventorySetOnHandQuantities. However, inventorySetOnHandQuantities is deprecated, prompting a switch to InventorySetQuantitiesInput. Another participant reported the same error and the same motivation (deprecation).
Observation: The Postman/GraphQL schema used by participants did not list InventorySetQuantities, reinforcing confusion about availability.
Resolution/Update: A clarification confirms InventorySetQuantitiesInput is available starting with API version 2024-07 or later. Using an older API version will cause the undefined type/field errors seen.
Action items:
- Upgrade the Shopify Admin API version to 2024-07 (or newer).
- Regenerate/update your GraphQL schema (e.g., in Postman) against the newer API version.
- Retry the inventorySetQuantities mutation with InventorySetQuantitiesInput.
Status: Resolved with version change; no further issues reported in the thread.