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.
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`. |