--- title: InventoryQuantityInput - GraphQL Admin description: >- The input fields for the quantity to be set for an inventory item at a location. api_version: 2024-10 api_name: admin type: input_object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/InventoryQuantityInput md: >- https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/InventoryQuantityInput.txt --- # Inventory​Quantity​Input input\_object The input fields for the quantity to be set for an inventory item at a location. ## Fields * compare​Quantity [Int](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/Int) The current quantity to be compared against the persisted quantity. * inventory​Item​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) non-null Specifies the inventory item to which the quantity will be set. * location​Id [ID!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/ID) non-null Specifies the location at which the quantity will be set. * quantity [Int!](https://shopify.dev/docs/api/admin-graphql/2024-10/scalars/Int) non-null The quantity to which the inventory quantity will be set. *** ## Input objects using this input * [Inventory​Set​Quantities​Input.​quantities](https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/InventorySetQuantitiesInput#field-quantities) INPUT OBJECT The input fields required to set inventory quantities. *** ## Map ### Input objects using this input * [Inventory​Set​Quantities​Input.quantities](https://shopify.dev/docs/api/admin-graphql/2024-10/input-objects/InventorySetQuantitiesInput#field-quantities)