create_template_version
Create new email template versions with HTML content and subject lines to update and manage your email campaigns in SendGrid.
Instructions
Create a new version of a template with HTML content and settings
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 | Yes | HTML content of the email template (supports Handlebars) | |
name | Yes | Name for this version | |
plain_content | No | Plain text version (optional) | |
subject | Yes | Email subject line (supports Handlebars) | |
template_id | Yes | ID of the template to add version to | |
test_data | No | JSON string of test data for Handlebars variables |
Input Schema (JSON Schema)
{
"properties": {
"active": {
"default": 1,
"description": "Set as active version (1 = active, 0 = inactive)",
"type": "number"
},
"generate_plain_content": {
"default": true,
"description": "Auto-generate plain text from HTML",
"type": "boolean"
},
"html_content": {
"description": "HTML content of the email template (supports Handlebars)",
"type": "string"
},
"name": {
"description": "Name for this version",
"type": "string"
},
"plain_content": {
"description": "Plain text version (optional)",
"type": "string"
},
"subject": {
"description": "Email subject line (supports Handlebars)",
"type": "string"
},
"template_id": {
"description": "ID of the template to add version to",
"type": "string"
},
"test_data": {
"description": "JSON string of test data for Handlebars variables",
"type": "string"
}
},
"required": [
"template_id",
"name",
"subject",
"html_content"
],
"type": "object"
}