Create/overwrite a human-authored language variant
Requires EDITOR. Always stored as status=published, origin=manual. locale must be supported.
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.
locale
required
string
Language variant locale (normalized against the supported locale set).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
subject
required
string
htmlBody
required
string
textBody
string | null
Examplegenerated
{ "subject": "example", "htmlBody": "example", "textBody": "example"}Responses
Section titled “Responses”Upserted variant.
Media typeapplication/json
object
locale
object
id
string
projectId
string
templateId
string
locale
string
subject
string
htmlBody
string
textBody
string | null
status
string
origin
string
createdBy
string | null
createdAt
string | null format: date-time
updatedAt
string | null format: date-time
Unsupported locale or validation error.
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"}