Enable a runbook
Lets a runbook pick up the company's maintenance requests again. This works on runbooks MagicDoor supplies as well as your own. Requires the maintenance_runbooks:write permission.
Authorization
AuthorizationstringrequiredPath parameters
runBookIdstringrequiredThe runbook to act on. A Snowflake id, sent as a decimal string.
Response
200 · The runbook, with `enabled` now `true`.
publicRunBookbooleanrequiredtrue when MagicDoor supplies this runbook to every company. A shared runbook can be switched on and configured for your company, but its title, description and script cannot be edited or deleted.
idstringrequiredThe runbook.
titlestringrequiredThe runbook's name. MagicDoor writes one from the script when you do not supply it.
descriptionstringrequiredWhat the runbook is for. MagicDoor writes one from the script when you do not supply it.
createdstring · date-timerequiredWhen the runbook was created, in the company's timezone and without an offset.
updatedstring · date-timeWhen the runbook was last changed, in the company's timezone and without an offset.
defaultVendorIdstringThe vendor this runbook sends work to when nothing more specific applies. Absent when none is set.
defaultPropertyManagerIdstringThe property manager this runbook hands requests to when nothing more specific applies. Absent when none is set.
enabledbooleanrequiredWhether the runbook is allowed to pick up this company's maintenance requests. A runbook your company has never configured reads as enabled.
usageCountintegerrequiredHow many times this runbook has been used for this company.
lastUsedstring · date-timeWhen it was last used, in the company's timezone and without an offset. Absent when it has never run.
vendorIdstringdeprecatedA copy of defaultVendorId. Read defaultVendorId instead.
scriptstringrequiredThe instructions MagicDoor follows when the runbook handles a request, in plain English.
lastUseMaintenanceRequestIdstringThe last maintenance request this runbook handled for the company. Absent when it has never run.
vendorOverwritesobject[]requiredPer-portfolio or per-property vendor overrides. An empty array when there are none.
propertyManagerOverwritesobject[]requiredPer-portfolio or per-property property manager overrides. An empty array when there are none.
actionExitCountsobjectrequiredHow many times the runbook has finished each way, as a map. The keys are askQuestion, closeRequest, createWorkOrder, handOverToHuman and reselectRunBook; only the ways it has actually finished appear. An empty object when it has never run.
lastUseMaintenanceRequestobjectThe last maintenance request this runbook handled, in the short row shape used by the maintenance request list. Absent when it has never run, or when that request no longer exists.