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

ParameterTypeRequiredDescription
slugstringYes
subjectstringNo
tsxSourcestringNo
variablesobject[]No
namestringNo
categorytransactional | lifecycleNo
variantKeystringNoSet for A/B variants (e.g. 'b'); omit for the mainline.
localestringNo
projectIdstringNoTarget company (project id) — required on project-scoped tools. Call email_list_projects to enumerate companies.

On this page