Skip to main content
PATCH
Templates update
Requires the messaging rollout flag and explicit personal-key permissions. Live publishing and lifecycle changes require an expiring preparation and idempotent execution.

Authorizations

Authorization
string
header
required

Integration key for backend workloads, or a scoped personal key (sr_user_) for account discovery and supported project operations. MCP accepts only personal keys.

Headers

X-Sendrealm-Project-Id
string<uuid>
required

Explicit authorized project. Its team is derived server-side.

Path Parameters

id
string<uuid>
required

Body

application/json
name
string

Display name, unique within project and channel.

Required string length: 1 - 120
description
string | null
Maximum string length: 10000
subject_template
string | null
Maximum string length: 1000000
preview_text
string | null
Maximum string length: 1000000
editor_json
object | null

Canonical email document. Do not combine with rendered_html/rendered_text. Null explicitly clears the editor when switching to raw content.

rendered_html
string | null

Raw email HTML. Clear editor_json explicitly before switching an existing document to raw HTML.

Maximum string length: 1000000
rendered_text
string | null
Maximum string length: 1000000
default_locale
string | null
Maximum string length: 35
messages
object[]

Push-only localized messages. Replaces the entire list; empty leaves an incomplete draft.

Maximum array length: 100

Response

200 - application/json

Successful operation

status
integer
required
data
object
required