Partially update a template
Requires EDITOR. status accepts only draft/active. An already-archived template cannot be edited (400).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Tenant project id (row-level isolation on every query).
templateId
required
string
Email template id.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Partial update; status limited to draft/active.
object
name
string
category
string
subject
string
previewText
string | null
editorDoc
string | null
htmlBody
string
textBody
string | null
variables
Array<string>
status
string
attachments
Array<string>
Responses
Section titled “Responses”Acknowledged.
Media typeapplication/json
object
ok
boolean
Validation error, archived template, or invalid attachments.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (no valid session/principal).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Authenticated but lacks the required project role.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Resource not found (or belongs to another project — indistinguishable).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}