stock_item_update
Idempotent
Update a stock_item you own (optionally compare-and-set via expected_updated_at).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The stock_item id. | |
| name | No | ||
| unit | No | ||
| notes | No | ||
| category | No | ||
| quantity | No | ||
| is_active | No | ||
| expiry_date | No | ||
| sell_price_cents | No | ||
| cost_per_unit_cents | No | ||
| expected_updated_at | No | Optional compare-and-set guard: the updated_at you last read. Mismatch returns CONFLICT with the current value. | |
| low_stock_threshold | No |