Skip to main content

inventoryUpdate

Update an existing inventory record's information.

Modifies inventory details including stock levels, location assignments, product associations, and availability status. Only provided fields will be updated, others remain unchanged.

Possible errors:

  • INVENTORY_NOT_FOUND_ERROR: Inventory record with the specified ID does not exist
  • INVENTORY_UPDATE_ERROR: Failed to update the inventory record
  • FORBIDDEN: Insufficient permissions to update inventory records

AUTH: Role=[logistics.OWNER,logistics.EDITOR]

inventoryUpdate(
id: Int!
input: UpdateInventoryInput!
): InventoryResponse!

Arguments

inventoryUpdate.id ● Int! non-null scalar

Unique identifier of the inventory record to update.

Must be a positive integer representing a valid inventory ID in the system.

inventoryUpdate.input ● UpdateInventoryInput! non-null input

Updated inventory information.

Contains the inventory properties to update. Only provided fields will be changed, others remain unchanged.

Type

InventoryResponse object

Response containing inventory data with operation metadata.

Extends the base inventory entity with additional response information including error messages and operation totals. Used for API responses that need to provide both inventory data and operation feedback.