Skip to main content
PUT
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key supplied as Authorization: Bearer <token>. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.

Path Parameters

id
string<uuid>
required

Email template UUID.

Body

application/json
name
string
Pattern: ^[A-Za-z0-9 _-]+$
subject
string | null

Liquid template subject.

html_body
string | null

Liquid template HTML body.

text_body
string | null

Liquid template text body.

variables
string[]
strict_variables
boolean

Per-template strict variable-validation setting.

autoescape
boolean

Per-template HTML autoescaping setting.

variable_schema
object | null

Structured variable requirements. Required variables cannot define defaults; invalid combinations return 422. Set to null to clear the schema.

Response

Template updated.

data
object
required