Update Stock
Update a stock row by row id from resolve_stock, list_stock, or search_stock (stock_⌠or a UUID). Never pass a display label such as stock1 or BK-1. If they gave a label, call resolve_stock first; if two rows share a label, ask which one. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/stock/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"productID": "string",
"locationID": "string",
"stockID": "string",
"lockID": "string",
"companyID": "string",
"trackerID": "string",
"archived": true
}'Authorization
x-api-keystringheaderAPI key from Settings â Integrations â API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Parameters
idstringpathrequiredStock row id from list_stock or search_stock (stock_⌠or a UUID like 019fâŚ). Not the display label (stock1, BK-1).
Body
productIDstringProduct ID this stock belongs to Omit to leave unchanged.
locationIDstringLocation ID where this stock is held Omit to leave unchanged.
stockIDstringHuman-readable stock label/identifier Omit to leave unchanged.
lockIDstring | nullOmit to leave unchanged.
companyIDstringCompany ID. Defaults to the authenticated user's company. Omit to leave unchanged.
trackerIDstring | nullOmit to leave unchanged.
archivedbooleanOmit to leave unchanged.
Response
JSON result for this operation.
{}