Set on-hand stock
Inventory
Set on-hand stock
Set the absolute on-hand quantity for an item at a location. Creates an opening or adjustment movement in the ledger. Requires inventory.write scope.
PUT
Set on-hand stock
Authorizations
Bearer API key from Settings → API Keys. Use restricted keys (prefix retrac_) with the minimum scopes required.
Query Parameters
The ID of the workspace.
Example:
"ws_cluuwcv0r..."
The slug of the project. This field is deprecated – use workspaceId instead.
Body
application/json