API referenceCategory
Update Category
Update a product category by ID. 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 booking:write or inventory:write scope.
POST
/category/{id}curl -X POST "https://dash.lockii.app/api/v1/category/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"companyID": "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
idstringpathrequiredCategory ID
Body
application/json
namestringCategory name Omit to leave unchanged.
companyIDstringCompany ID. Defaults to the authenticated user's company. Omit to leave unchanged.
Response
application/json
JSON result for this operation.
object
{}