Update template draft
update_templateUpdates a template's draft by overwriting only the fields you send; live email keeps using the published version until you publish it. Send alias: null to remove it; requires a full-access key.
Instructions
PATCH /templates/:id. Changes a template's DRAFT, overwriting the fields you send (send only the ones to change; same formats as create_template). Live email keeps using the published version until publish_template is called. Send alias: null to remove the alias. Sending html replaces a visual-editor design with plain HTML. Needs a full-access key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The template id or alias. | |
| from | No | Default sender. | |
| html | No | New HTML body. | |
| name | No | New name, up to 120 characters, unique in the account. | |
| text | No | Plain-text version. | |
| alias | No | New alias, or null to remove it. | |
| subject | No | Default subject. | |
| reply_to | No | Default Reply-To address. | |
| variables | No | Replaces all variable definitions (up to 50). | |
| preview_text | No | Preview text, up to 500 characters. |