Work orders

Delete a work order

Deletes a work order along with its chats, its draft bills and their files. To keep the record but take it out of circulation, use Deactivate a work order instead. Requires the work_orders:delete permission.

DELETE
https://services.magicdoor.com/maintenance/company-portal/work-orders/{workOrderId}

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

workOrderIdstringrequired

The work order to act on. A Snowflake id, sent as a decimal string.

example: 1841200938471029248

Response

200 · The work order was deleted. The response has no body.

401 · The request carried no valid access token.

403 · The token is not a property manager token, or it lacks the `work_orders:delete` permission.

404 · No such work order, or it belongs to another company.