Delete a letter template
Removes a letter template from the company's list and returns it one last time. Requires the letter_templates:delete permission.
Authorization
AuthorizationstringrequiredPath parameters
idstringrequiredThe letter template to delete. A 64-bit number sent as a string.
Response
200 · The template as it was at the moment it was deleted.
idstringrequiredThe letter template. A 64-bit number sent as a string — do not parse it as a JavaScript number.
letterTemplateGroupIdstringThe group this template is filed under. Absent while the template is ungrouped.
namestringThe name shown to the property manager. Absent when the template was created without one.
communicationChannelsenum<string>[]requiredThe kinds of recipient this template can be addressed to.
emailSubjectstringSubject line used when the template is sent as an email. Absent when the template is chat-only.
emailBodystringThe email body, as HTML, with placeholders still in {{key}} form. Absent when the template is chat-only.
chatContentstringThe chat message body, as plain text, with placeholders still in {{key}} form. Absent when the template is email-only.
sourceFileIdstringThe uploaded Word file this template was imported from. Present only on imported templates, and it is what isImported filters on.
createdstring · date-timerequiredWhen the template was created, in the company's timezone and with no offset.
updatedstring · date-timerequiredWhen the template was last changed, in the company's timezone and with no offset.