Templates
Update Template
Update an existing email template’s content, subject, or settings using the AutoSend API.
PUT
Authorizations
Bearer authentication header of the form Bearer
<token>, where <token> is your auth token.Path Parameters
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.Name of the template (max 90 characters).Maximum length:
90Example: "Updated Welcome Email"Email subject line (max 988 characters). Supports Handlebars template variables.Maximum length:
988Example: "Welcome aboard, {{firstName}}!"Short description of the template (max 140 characters).Maximum length:
140Example: "Updated welcome email for new users"Email preview text / preheader (max 140 characters).Maximum length:
140Example: "Your journey starts here"HTML content of the email template. Supports Handlebars syntax for dynamic variables.Example:
Type of the template.Allowed values:
transactional, marketingExample: "transactional"Dynamic variables configuration for the template.Example:
ID of the sender to associate with this template. The sender must belong to the same project.Example:
"60d5ec49f1b2c72d9c8b4567"Response
Template updated successfullyIndicates if the request was successfulExample:
trueThe updated template object