Skip to main content
PUT
Update EmailTemplateFile
Updates an existing EmailTemplateFile record. You must include the Id of the record to update along with all required fields.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the EmailTemplateFile-Edit role.

Enums

Request Body

Required Fields

integer
required
The Id of the EmailTemplateFile record to update.
integer
required
ID of the location whose automated email template this record overrides..
integer
required
Obsolete legacy language enum; use FileLanguage to select the configured location language instead..
string
required
Built-in email message identifier this record overrides, such as the identifier for a welcome, invoice, booking confirmation, or reminder email; required and limited to 254 characters..
string
required
Required email subject line, up to 254 characters; supported message tokens are replaced before the email is queued..

Optional Fields

integer
ID of the configured location language for this template override; together with Name and Business it identifies the saved template..
string
Email body content for this location and language; supported message tokens are replaced before the email is queued..
string
Optional Unlayer design JSON used to continue visual editing; FileContents remains the exported HTML used for delivery..
boolean
Whether this template is marked as text-only; the current message dispatch path stores and transfers this flag without using it to transform the body..
string
Optional sender display name passed to email delivery, limited to 254 characters..
string
Optional sender email address passed to email delivery, limited to 254 characters..
string
Optional carbon-copy recipient email address passed to email delivery, limited to 254 characters..
string
Optional blind-carbon-copy recipient email address passed to email delivery, limited to 254 characters..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the update.
object
Contains the Id of the updated record.
boolean
true if the emailtemplatefile was updated successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response