Templates
email_update_template
Create a NEW draft version of a template (published versions are immutable).
write email_update_template
Create a NEW draft version of a template (published versions are immutable). Omitted fields carry over from the latest version. name and category are NOT versioned: they change the template in place, immediately, for every live send — switching category changes whether an unsubscribe blocks those sends. Confirm a category change with the user first.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
slug | string | Yes | |
subject | string | No | |
tsxSource | string | No | |
variables | object[] | No | |
name | string | No | |
category | transactional | lifecycle | No | |
variantKey | string | No | Set for A/B variants (e.g. 'b'); omit for the mainline. |
locale | string | No | |
projectId | string | No | Target company (project id) — required on project-scoped tools. Call email_list_projects to enumerate companies. |