updateInventory
Update an inventory record
This page contains
Arguments
input UpdateInventoryInput! |
Return Fields
inventory Inventory | The updated inventory record |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
xxxxxxxxxx
mutation updateInventory($input: UpdateInventoryInput!) {
updateInventory(input: $input) {
inventory {
id
editionCode
sku
}
}
}
xxxxxxxxxx
{
"input": {
"id": 34827,
"stock": 5
}
}