EmailTemplateFiles
Create EmailTemplateFile
Create a new EmailTemplateFile record.
POST
Create EmailTemplateFile
An EmailTemplateFile defines an email template used for automated communications such as welcome emails, invoices, booking confirmations, and reminders. Templates are language-specific and can be customised per location.
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-Create role.Enums
eLanguage — Language values
eLanguage — Language values
| Value | Name |
|---|---|
| 3 | EnglishUK |
| 1 | EnglishUS |
| 2 | Spanish |
Request Body
Required Fields
ID of the business linked to this record.
The language value for this email template file.
The name value for this email template file.
The subject value for this email template file.
Optional Fields
ID of the file language linked to this record.
The file contents value for this email template file.
Whether is text only is enabled.
The from name value for this email template file.
The from email value for this email template file.
The cc email value for this email template file.
The cco email value for this email template file.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the emailtemplatefile was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create EmailTemplateFile