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. Also updates template metadata (name/category/sender) when given.

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 company-scoped tools. Call email_list_projects to enumerate companies.

On this page