update_template_version
Modify email template versions by updating content, subject lines, and activation status to maintain current messaging across email campaigns.
Instructions
Update the content and settings of a template version
Input Schema
Name | Required | Description | Default |
---|---|---|---|
active | No | Set as active version (1 = active, 0 = inactive) | |
generate_plain_content | No | Auto-generate plain text from HTML | |
html_content | No | HTML content of the email template | |
name | No | New name for this version | |
plain_content | No | Plain text version | |
subject | No | Email subject line (supports Handlebars) | |
template_id | Yes | ID of the template | |
test_data | No | JSON string of test data for Handlebars variables | |
version_id | Yes | ID of the version to update |
Input Schema (JSON Schema)
{
"properties": {
"active": {
"description": "Set as active version (1 = active, 0 = inactive)",
"type": "number"
},
"generate_plain_content": {
"description": "Auto-generate plain text from HTML",
"type": "boolean"
},
"html_content": {
"description": "HTML content of the email template",
"type": "string"
},
"name": {
"description": "New name for this version",
"type": "string"
},
"plain_content": {
"description": "Plain text version",
"type": "string"
},
"subject": {
"description": "Email subject line (supports Handlebars)",
"type": "string"
},
"template_id": {
"description": "ID of the template",
"type": "string"
},
"test_data": {
"description": "JSON string of test data for Handlebars variables",
"type": "string"
},
"version_id": {
"description": "ID of the version to update",
"type": "string"
}
},
"required": [
"template_id",
"version_id"
],
"type": "object"
}