Change which maintenance request a work order answers
Links the work order to a different maintenance request, or unlinks it. This only moves the link — it does not touch either request's status, and it does not copy any files. Requires the work_orders:write permission.
Authorization
AuthorizationstringrequiredPath parameters
workOrderIdstringrequiredThe work order to act on. A Snowflake id, sent as a decimal string.
Body
application/json
newMaintenanceRequestIdstringThe maintenance request this job should answer. Send an empty string, or leave it out, to unlink it from any request.
Response
200 · The updated work order.
idstringrequiredThe work order.
referencestringrequiredThe work order number people quote, generated when the work order is raised.
titlestringrequiredWhat the job is, in a line. MagicDoor writes it from the description when you do not supply one.
statusenum<string>requiredWhere the job has got to.
urgencyenum<string>requiredHow urgent the job is.
portfolioIdstringrequiredThe portfolio the property sits in.
propertyIdstringrequiredThe property the work is on.
unitIdstringThe unit the work is on. Absent when the job covers the whole property.
leaseIdstringThe lease the work is tied to. Absent when it is not tied to one.
vendorobjectThe vendor doing the work, in the same shape as Get a vendor. Absent when no vendor is assigned. The properties below are the ones you are most likely to want; the full vendor record is returned.
locationobjectWhere the work is, looked up from the property and unit at read time.
assignedOnstring · date-timeWhen a vendor was last put on the job, in the company's timezone and without an offset. Absent while no vendor is assigned.
chatIdstringThe chat with the vendor. Absent until one is opened — see Open the vendor chat on a work order.
groupChatIdstringThe chat with the vendor and the tenants together. Absent until one is opened.
assignedPropertyManagerIdstringThe property manager who owns this work order. Absent while nobody is assigned.
maintenanceRequestIdstringThe maintenance request this job came from. Absent when the job was raised on its own.
recurringWorkOrderIdstringThe recurring work order that raised this one. Absent when it was not raised on a schedule.
dueDatestring · dateThe date the job is wanted by, in the company's timezone. Absent when no date was set.
sessionsobject[]requiredThe visits booked for this work order, earliest first. An empty array when nothing is booked.
createdstring · date-timerequiredWhen the work order was raised, in the company's timezone and without an offset.
updatedstring · date-timeWhen it last changed, in the company's timezone and without an offset.
descriptionstringrequiredWhat needs doing, in full.
internalDescriptionstringNotes for staff only, never shown to the tenant or the vendor. Absent when there are none.
permissionToEnterbooleanrequiredWhether someone may enter the unit when the tenant is not home.
filesobject[]requiredFiles attached to the work order. An empty array when there are none.
billsobject[]The work order's bills — its draft bills, plus the real vendor bills any of them have been converted into. An empty array when there are none.
chartOfAccountsobject[]requiredThe company's whole chart of accounts, included so a bill's account can be picked without a second call.