API referenceMaintenance Cost
Update Work Order Cost
Update or archive a work order cost. 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-cost/{id}curl -X POST "https://dash.lockii.app/api/v1/maintenance-cost/{id}" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amountCents": -9007199254740991,
"archived": true,
"maintainedElementIDs": [
"string"
],
"name": "string",
"orderID": "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
idstringpathrequiredCost ID
Body
application/json
amountCentsintegerarchivedbooleanmaintainedElementIDsstring[]namestringorderIDstring | null
Response
application/json
JSON result for this operation.
object
{}