Override one face of one email template
PUT /email-templates/{template}/{part}
Upserts the override for (template, part). part is one of
subject, text, or html.
THE BODY MUST PARSE AND MUST REFERENCE ONLY THE EVENT’S
DOCUMENTED FIELDS. It is executed against a sample context with
missingkey=error at save time, so a reference to a field
outside the view-model is refused with 422 naming the field
rather than rendering to nothing at send time — ADR 0081 §2’s
fail-loud rule. The check is enforced here, not only in the admin
UI, because a caller holding system.config.write can reach this
endpoint directly.
Requires system.config.write.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The template name, e.g. admin_test.
Subject, text, or html.
Request Body required
Section titled “Request Body required ”PUT body for /email-templates/{template}/{part}. The template + part ride the path.
object
The replacement template body, in Go text/template syntax (html/template for the html part). It must reference only the event’s documented fields — a reference to anything else is refused with 422 naming the field.
Responses
Section titled “ Responses ”The stored override.
object
Example
admin_testSubject, text, or html.
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completedRequest shape is valid but the action doesn’t apply (e.g. subtitles on a non-video/audio asset).
object
Human-readable error summary
Example
the request could not be completed