API referenceMeter
Assign Meter
Assign a meter to a stock item, or unassign it. App connections need the booking:write or inventory:write scope.
POST
/meter/{id}/assigncurl -X POST "https://dash.lockii.app/api/v1/meter/{id}/assign" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"stockID": "string"
}'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
idstringpathrequiredMeter ID
Body
application/json
stockIDstring | nullrequiredStock item ID, or null to unassign
Response
application/json
JSON result for this operation.
object
{}