Update an email template
/email-templates/{id}Changes the fields you send and returns the template. Saving content, a subject or a switch on a default template stores it and makes it customised; changes that leave a default template as it is store nothing. A custom template stays custom. subject: null leaves the subject as it is, and saving a subject without content stores the current content with it. Use POST /email-templates/{id}/actions/reset to return a template to its default. It emits email_template.updated with the changed fields, and sending the previous values undoes it. dry_run shows the result without saving it.
Path parameters
The template slug, such as user_welcome. It is the template's id. A leading underscore is accepted and ignored.
Query parameters
Validate and run the call without committing it, returning what the real call would return with
meta.dry_runset.
Request body
application/json, required
The subject line. Null clears it, so a system template falls back to its default subject.
The content the template sends. It can use the placeholders listed by
include=placeholders.Whether the platform sends this template. A disabled template is skipped.
Whether the recipient's CC list members are copied on this template.
Whether the recipient's assigned internal user is copied on this template.
{
"subject": "Welcome to {{platformName}}",
"enabled": true
}Responses
{
"data": {
"id": "string",
"name": "string",
"category": "string",
"status": "default",
"enabled": true,
"cc_list_enabled": true,
"assigned_internal_cc_enabled": true,
"subject": "string",
"layout_mode": "fragment",
"content": "string",
"default_content": "string",
"default_subject": "string",
"placeholders": [
{
"value": "string",
"label": "string"
}
],
"created_at": "2026-06-12T10:00:00+00:00",
"updated_at": "2026-06-12T10:00:00+00:00"
}
}Authorization failed. error.code is one of org_disabled,
ip_blocked, missing_scope, scope_disabled, user_disabled.
The request can't be processed (HTTP 422): validation_failed with one ErrorDetail per
problem, or a code documented on the operation.
Examples
curl -X PATCH https://your-org-domain/kong/core/api/v2/email-templates/{id}\
-H "Authorization: Bearer $HELM_API_KEY"\
-H "Content-Type: application/json"\
-d '{
"subject": "Welcome to {{platformName}}",
"enabled": true
}'