Update a letter template
Replaces a letter template's name, group, channels and content in one call. Requires the letter_templates:write permission.
Authorization
AuthorizationstringrequiredPath parameters
idstringrequiredThe letter template to update. A 64-bit number sent as a string.
Body
application/json
This is a full replacement, not a patch. Every field you leave out is cleared on the stored template — send the values you want to keep, including the ones you are not changing.
namestringThe name shown to the property manager. Up to 250 characters. Leaving it out clears the existing name.
letterTemplateGroupIdstringFile the template under this group. Leaving it out removes the template from whatever group it is in.
communicationChannelsenum<string>[]requiredThe kinds of recipient this template can be addressed to. Each value decides which placeholders the content may use — a lease template can use {{rent_amount}}, a vendor template cannot. When several are listed, only the placeholders every one of them offers are allowed.
emailSubjectstringSubject line for the email form of this template. Up to 500 characters.
emailBodystringThe email body, as HTML. No length limit.
chatContentstringThe chat message body, as plain text. Up to 5000 characters.
Response
200 · The template as it now stands.
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.