Update an existing email template’s name and/or content. If content (html or json) is provided, a new active version will be created with extracted merge tags. If project_id is not provided, the template will be looked up in the team’s default project.
html or json content creates a new version of the template automatically.
The html and json fields are mutually exclusive. If neither is provided, only metadata (name, project) is updated without creating a new version.API key for authentication
The template slug (URL-friendly identifier)
"welcome-email"
Request to update an existing email template. All fields are optional - provide only what you want to change. If html or json is provided, a new active version will be created.
Project ID to find the template in. If not provided, uses the team's default project.
x >= 15
New name for the template
255"Updated Welcome Email"
New HTML content for the template. Creates a new active version. Mutually exclusive with json.
"<html><body><p>Hello {{NAME}}!</p></body></html>"
New JSON content for Topol visual editor templates. Creates a new active version. Mutually exclusive with html.
"{\"tagName\":\"mj-container\",\"children\":[{\"tagName\":\"mj-text\",\"content\":\"Hello {{FIRST_NAME}}!\"}]}"