Moves stock for an item from one location to another.
Requires ManageInventory and an Idempotency-Key header. Re-points quantity of the oldest available units at fromLocationId to toLocationId - the same thing as "Quick move" on the Inventory page, recorded in each unit's change history. Nothing is created or destroyed; the item's total on hand is unchanged. Fewer available units than requested answers 409 and moves nothing. Omit toLocationId for the organization's "No Location" bucket. Job sites are refused at either end (422) - stock reaches a job site through a job or a transfer. Example: { "fromLocationId": 1, "toLocationId": 4, "quantity": 3 }.
Request
- Base URL: https://app.flexonthejob.com
- URL: https://app.flexonthejob.com/api/v1/items/{id}/stock/move
- Auth: HTTP bearer
Path parameters
Numeric item id.
Request body
Response
Stock moved; body carries the confirmation and the item's updated per-location stock.
Changes
No recorded changes to this operation across all 1 revision of this API.