post
https://production-api.shoutaboutus.com/api/v1/campaign/template/email/update
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_idmust resolve to a template owned by the caller's company (or a global one); otherwise validation fails.
Rate limit
- No rate limit.
Body
| Field | Type | Required | Notes |
|---|---|---|---|
email_template_id | integer | Required | Must be an existing email template inside your own account tree (or be global). |
subject | string | Required | Max 255. |
html_content | string | Required* | Rendered HTML. *Optional when you send html_content_b64. |
html_content_b64 | string (base64) | Optional | Base64 of html_content — use for payloads with <script>/<iframe>/on*= that AWS WAF blocks in clear. Decoded into html_content before validation. |
json_content | string (JSON) | Required | Editor JSON, validated as json. |
title | string | Optional | New name. Unique within the caller's company and against global (shared) templates (ignores this row). |
template_editor_mode | string | Optional | custom or html_editor. |
channel_id | integer | Optional | Must be an existing campaign channel. Associates the template with the channel. |
manager_email | string(email) | Optional | Validated email:rfc,dns. |
other_manager_email | string[] | Optional | Each a distinct email:rfc,dns. |
follow_up_interval | integer | Optional | One of 1,2,3,4,5,6,7,14,30. Applied to the channel for follow_up templates. |
follow_up_interval_count | integer | Optional | One of 1,2,3. |
Behaviour
- Synchronous.
200 OKreturns the saved model underdata.data.400(envelope{message,status,errors}) when replicating a global template and the chosen name already exists for the company.422on validation failure or when the template is not in the caller's company.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
