Update email template

Update an existing email template (subject, HTML/JSON content, name, editor mode, manager emails). Copy-on-write for globals: if the target template has no company_id (a global template), it copies into the caller's company first (a name clash there returns 400). When you supply channel_id the template is wired onto that campaign channel. A follow_up template sets the channel's follow_up_template_id + interval fields, otherwise it sets template_id.

Auth

  • bearer token, account role — authentication. email_template_id must resolve to a template owned by the caller's company (or a global one); otherwise validation fails.

Rate limit

  • No rate limit.

Body

FieldTypeRequiredNotes
email_template_idintegerRequiredMust be an existing email template inside your own account tree (or be global).
subjectstringRequiredMax 255.
html_contentstringRequired*Rendered HTML. *Optional when you send html_content_b64.
html_content_b64string (base64)OptionalBase64 of html_content — use for payloads with <script>/<iframe>/on*= that AWS WAF blocks in clear. Decoded into html_content before validation.
json_contentstring (JSON)RequiredEditor JSON, validated as json.
titlestringOptionalNew name. Unique within the caller's company and against global (shared) templates (ignores this row).
template_editor_modestringOptionalcustom or html_editor.
channel_idintegerOptionalMust be an existing campaign channel. Associates the template with the channel.
manager_emailstring(email)OptionalValidated email:rfc,dns.
other_manager_emailstring[]OptionalEach a distinct email:rfc,dns.
follow_up_intervalintegerOptionalOne of 1,2,3,4,5,6,7,14,30. Applied to the channel for follow_up templates.
follow_up_interval_countintegerOptionalOne of 1,2,3.

Behaviour

  • Synchronous. 200 OK returns the saved model under data.data. 400 (envelope {message,status,errors}) when replicating a global template and the chosen name already exists for the company. 422 on validation failure or when the template is not in the caller's company.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
string
string
string
string
string
string
string
other_manager_email
array of strings
other_manager_email
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json