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
topicstring | nullNo
variantKeystringNoSet for A/B variants (e.g. 'b'); omit for the mainline.
localestringNo
projectIdstringNoTarget company (project id). Org-scoped tokens only; call email_list_projects first.

On this page