API referenceStock
Record Stock Readings
Merge readings onto a stock item and refresh part due status. App connections need the inventory:write scope.
POST
/stock/{stockID}/readingscurl -X POST "https://dash.lockii.app/api/v1/stock/{stockID}/readings" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"readings": {
"key": null
}
}'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
stockIDstringpathrequiredStock item ID
Body
application/json
readingsmap of __schema0requiredMeter or stock reading keys and values to merge
Response
application/json
JSON result for this operation.
object
{}