PUT

Authorizations

Authorization
string
header
required

Workspace-scoped API key from the credentials table

Body

application/json
templateId
string
required

Workspace-unique template slug ID identifying the template to update

name
string

New template name

subject
string

New email subject line

preheader
string | null

New preheader / preview text

content
object

A React Email component tree. Either a {schema, nodes} document or a bare node array. Node types: container, section, header, footer, heading, text, button, link, image, list. Text props may contain {{variable}} placeholders.

Response

Template updated

id
string
required

Workspace-unique template slug ID

name
string
required
subject
string
required
status
string
required

Template status (e.g. Active)

createdAt
string<date-time>
required
updatedAt
string<date-time>
required
preheader
string | null