Update a stock item's details (not its quantity)
Update a stock item's details (not its quantity). Requires the MANAGER role.
Session cookie set by sign-in on HTTPS deployments (the hosted demo).
In: cookie
Path Parameters
Resource id (UUID).
uuidHeader Parameters
CSRF guard: must be quartermaster on every mutation.
Request Body
application/json
Editable details of a stock item (quantities change through adjustments).
Editable details of a stock item (quantities change through adjustments).
Stock-keeping unit code.
^[A-Za-z0-9][\w.\-/]*$1 <= length <= 64Display name.
1 <= length <= 120Product category.
Value in
- "food_packaging"
- "cleaning_supplies"
- "cooking_ingredients"
- "beverages"
- "kitchen_equipment"
- "alcohol"
- "gift_cards"
- "services"
Unit of measure (each, liter, case...).
1 <= length <= 24Units to keep on hand as a buffer.
0 <= value <= 10000000Days of usage an order should cover.
1 <= value <= 60Lead time for this item, overriding the supplier's (null = use supplier's).
nullId of the related preferred supplier.
nullPhrase used to look up market prices (Channel3).
2 <= length <= 200Words that identify this item in natural-language requests.
items <= 20[]Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/inventory/0f8fad5b-d9cb-469f-a165-70867728950e" \ -H "X-Requested-With: quartermaster" \ -H "Content-Type: application/json" \ -d '{ "sku": "string", "name": "string", "category": "food_packaging", "unit": "string", "safety_stock": 0, "coverage_days": 1, "search_query": "string" }'{ "item": { "id": "string", "sku": "string", "name": "string", "category": "food_packaging", "unit": "string", "on_hand": 0, "inbound_confirmed": 0, "committed": 0, "available": 0, "avg_daily_usage": 0, "lead_time_days": 0, "safety_stock": 0, "coverage_days": 0, "reorder_point": 0, "days_of_cover": 0, "status": "OK", "preferred_supplier_id": "string", "data_source": "CHANNEL3_MARKET", "search_query": "string", "keywords": [ "string" ], "lead_time_days_override": 0 }}