update_template
Update an existing HTML email template. Only the fields you pass change; the current name, HTML, plain text and category are kept otherwise. It can't change drag-and-drop templates: revise those with update_dnd_email_template, and design new ones with create_dnd_email_template. Personalise with [[key]] merge tags, e.g. [[name]] for the first name (keys from list_custom_fields); {{…}} is not replaced in campaigns. Templates that would send broken (raw or unknown tags, a tag after a greeting, http images, missing alt text, placeholder links, over 102 KB) are refused with the fixes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | New HTML content (leave out to keep the current HTML) | |
| name | No | New template name (leave out to keep the current name) | |
| dry_run | No | Show what would change without changing anything | |
| plain_text | No | New plain text (leave out to keep it; if only html changes it is regenerated from the new HTML) | |
| category_id | No | Category ID from list_template_categories; 0 = uncategorized (leave out to keep the current category) | |
| template_id | Yes | Template ID |