updateInventoryItem
Since pyck v0.27.0
Served by: inventory
Arguments
Section titled “Arguments”| Name | Type | Default | Description |
|---|---|---|---|
id |
ID! | ||
input |
UpdateInventoryItemInput! |
Returns
Section titled “Returns”Example
Section titled “Example”Updates an existing inventory item. Supply any fields to change (sku, data, dataTypeID); omitted fields are left unchanged.
mutation UpdateInventoryItem($id: ID!, $input: UpdateInventoryItemInput!) { updateInventoryItem(id: $id, input: $input) { eventCount inventoryItem { createdAt createdBy currentStockTotals { lastChangedAt quantity } data dataTypeID dataTypeSlug deletedAt deletedBy id sku tenantID updatedAt updatedBy } transactionID }}Variables
{ "id": "<inventory item ID>", "input": { "sku": "WIDGET-UPDATED" }}