API referenceMaintenance
Create Work Order
Create a work order on a stock item. Optionally schedule downtime that blocks hire. App connections need the booking:write or inventory:write scope.
POST
/maintenancecurl -X POST "https://dash.lockii.app/api/v1/maintenance" \
-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.
Body
application/json
assigneeUserIDstring | nullTeammate user ID to assign
blocksAvailabilitybooleanBlock the item from hire for the downtime window
endDatenumber | nullDowntime end, Unix ms
idstringWork order ID. Generated if omitted.
notestringWork order title or notes
photoImageIDsstring[]priorityenum<string> | nullOne of:urgenthighmediumlowstartDatenumber | nullDowntime start, Unix ms
stockIDstringrequiredStock item ID to work on
Response
application/json
JSON result for this operation.
object
{}