Inventory
Public

Edit material + inventory_item atomically

Atomically updates whitelisted fields on a materials row and its joined inventory_items row. Quantity is not editable here (use /add and /remove). Returns 409 with conflict_side on optimistic-concurrency mismatch.

patch/v1/inventory/{itemId}/material

Path parameters

itemIdstring uuid required

Request body

expected_material_updated_atstring date-time
expected_inventory_updated_atstring date-time
organizationIdstring uuid

Response

Default Response

okboolean
material_updated_atstring
inventory_updated_atstring
materialobject
inventory_itemobject

Changes

Changed in 1 of the 45 revisions of this API.1