API referenceMaintenance
Update Work Order
Update work order notes, schedule, priority, assignee, photos, or stock. 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
/maintenance/{id}curl -X POST "https://dash.lockii.app/api/v1/maintenance/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"assigneeUserID": "string",
"blocksAvailability": true,
"endDate": 0,
"note": "string",
"photoImageIDs": [
"string"
],
"priority": "urgent",
"startDate": 0,
"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
idstringpathrequiredWork order ID
Body
application/json
assigneeUserIDstring | nullblocksAvailabilitybooleanendDatenumber | nullnotestringphotoImageIDsstring[]priorityenum<string> | nullOne of:urgenthighmediumlowstartDatenumber | nullstockIDstring
Response
application/json
JSON result for this operation.
object
{}