Skip to main content
PUT

Authorizations

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

Path Parameters

string
required
The unique identifier of the template to update.Example: "A-abc123def456ghi789jk"

Body

Template fields to update. All fields are optional — only provided fields will be updated.
string
Name of the template (max 90 characters).Maximum length: 90Example: "Updated Welcome Email"
string
Email subject line (max 988 characters). Supports Handlebars template variables.Maximum length: 988Example: "Welcome aboard, {{firstName}}!"
string
Short description of the template (max 140 characters).Maximum length: 140Example: "Updated welcome email for new users"
string
Email preview text / preheader (max 140 characters).Maximum length: 140Example: "Your journey starts here"
string
HTML content of the email template. Supports Handlebars syntax for dynamic variables.Example:
string
Type of the template.Allowed values: transactional, marketingExample: "transactional"
object
Dynamic variables configuration for the template.Example:
string
ID of the sender to associate with this template. The sender must belong to the same project.Example: "60d5ec49f1b2c72d9c8b4567"

Response

Template updated successfully
boolean
Indicates if the request was successfulExample: true
object
The updated template object