Skip to main content
PATCH
Update a template

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

The ID of the item to update

Example:

"01a20d6a-ff8a-7479-834b-676774718c2f"

Body

application/json
name
string

Name of the template (2 to 100 characters)

Required string length: 2 - 100
Example:

"Onboarding Email Template"

description
string

Description of the template (1 to 1000 characters after trimming). It cannot be cleared once set.

Required string length: 1 - 1000
Example:

"Onboarding welcome email template"

html
string

HTML of the template, rendered from design. Any html sent on create or update is not used, but must still be 1 to 2,097,152 bytes.

Example:

"<html><body>Hello {{first_name}}!</body></html>"

design
string

Design of the drag-and-drop editor, as a JSON string. At most 5 MB (5,242,880 bytes) in UTF-8. The HTML is rendered from it. A template used in a broadcast or journey email must contain an {{unsubscribe_url}} link; without one, sending is refused with code MISSING_UNSUBSCRIBE_URL.

Minimum string length: 1
Example:

"{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[]}]}"

category
enum<string>

Category of the template. Required on create.

Available options:
my-templates
Example:

"my-templates"

default_values
object

Default first_name and last_name to use when a subscriber does not have these values. Ignored on create: set them with an update.

Response

The updated Template

An email marketing template. Optional fields with no value are left out of responses. Lists page with starting_after: pass the previous page's next_starting_after until there is none.

id
string<uuid>
required
read-only

Unique identifier for the template

Example:

"01a20d6a-b931-77ef-a291-0dbb953d01a0"

name
string
required

Name of the template (2 to 100 characters)

Required string length: 2 - 100
Example:

"Onboarding Email Template"

html
string
required

HTML of the template, rendered from design. Any html sent on create or update is not used, but must still be 1 to 2,097,152 bytes.

Example:

"<html><body>Hello {{first_name}}!</body></html>"

text
string
required
read-only

Plain text version of the template, generated from the HTML

Example:

"Hello {{first_name}}! Welcome to our newsletter."

design
null | string
required

Design of the drag-and-drop editor, as a JSON string. At most 5 MB (5,242,880 bytes) in UTF-8. The HTML is rendered from it. A template used in a broadcast or journey email must contain an {{unsubscribe_url}} link; without one, sending is refused with code MISSING_UNSUBSCRIBE_URL.

Example:

"{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"content\":[]}]}"

workspace_id
string<uuid>
required
read-only

Workspace ID that owns this template

Example:

"01a20d6a-b931-77ef-a291-0dbc164719be"

editor_type
enum<string>
required

Editor type used to create the template. Cannot be changed after creation.

Available options:
drag-and-drop
Example:

"drag-and-drop"

timestamp_created
string<date-time>
required
read-only

Timestamp when the template was created

Example:

"2026-11-24T11:57:07.761Z"

timestamp_updated
string<date-time>
required
read-only

Timestamp when the template was last updated

Example:

"2026-11-24T11:57:07.761Z"

created_by
string
required
read-only

ID of the user who created the template, or the literal api_key when it was created with an API key

Example:

"01a20d6a-b931-77ef-a291-0dbd000b642e"

actor_type
enum<string>
required
read-only

Type of actor that created the template

Available options:
user,
api_key
Example:

"user"

description
null | string

Description of the template (1 to 1000 characters after trimming). It cannot be cleared once set.

Example:

"Onboarding welcome email template"

category
null | enum<string>

Category of the template. Required on create.

Available options:
my-templates,
null
Example:

"my-templates"

default_values
object

Default first_name and last_name to use when a subscriber does not have these values. Ignored on create: set them with an update.