Email templates

Copy an email template as a one-off

post/email_templates/{id}/copy_one_off

Path parameters

idstring required

The ID of the email template to copy

Request body

object required

Response

The copied EmailTemplate object. As a one-off, it will not be return from GET /businesses/:id/email_templates

idstring required

The ID of the email template

namestring required

The name of the email template

subjectstring required

The subject of the email template. Variables are supported via {{ variableName }}

bodystring nullable required

(Deprecated) The body of the email template. Always null since there are no plaintext emails

kind'html' | 'unlayer' | 'old_editor' | 'editor' required

The kind of the email template

template_htmlstring nullable required

The HTML representation of the rich text email. May be null

{"stackTrail":"components:schemas:EmailTemplate:properties:template_json","oasType":"schema","type":"unknown","description":"The JSON representing the rich text email template. May be null","nullable":true}
{"stackTrail":"components:schemas:EmailTemplate:properties:new_template_json","oasType":"schema","type":"unknown","description":"The new unlayer JSON template. May be null","nullable":true}
new_template_htmlstring nullable required

The new unlayer HTML template. May be null

metadataobject required

Arbitrary metadata associated with this email template

created_atstring required

The time when the email template was created in ISO 8601 format

enabled_atstring nullable

The time when the email template was enabled in ISO 8601 format

Changes

No recorded changes to this endpoint across all 1 revision of this API.