update_product_stock
Adjust a product's stock quantity in Holded by applying a positive or negative delta to a required warehouse, optionally targeting a variant and adding an audit note.
Instructions
Update stock quantity for a product (Holded API v2). BREAKING CHANGE from v1: warehouse_id is now required; stock_variation replaces units; optional variant_id and description added.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>",
"warehouse_id": "<warehouse_id>",
"stock_variation": "<stock_variation>"
},
"name": "update_product_stock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | Product ID | |
| variant_id | No | Variant ID to target a specific product variant (optional) | |
| description | No | Audit note describing the stock adjustment (optional) | |
| warehouse_id | Yes | Warehouse ID (required in v2 — v2 rejects stock updates without it) | |
| stock_variation | Yes | Stock delta (positive to add, negative to subtract). Replaces v1 `units`. |