Update Template
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.
Updates an existing template by its slug. You can update the template name, project assignment, or content. Providing newDocumentation Index
Fetch the complete documentation index at: https://docs.lettr.com/llms.txt
Use this file to discover all available pages before exploring further.
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.Authorizations
API key for authentication
Path Parameters
The template slug (URL-friendly identifier)
"welcome-email"
Body
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}}!\"}]}"