Update a template
Partially update a template; omitted fields are left untouched.
PATCH
Partially update a template; omitted fields are left untouched. html, text, and variables_schema may be set to null to clear them (there is no cross-field requirement on update, so both bodies may be nulled). Editing a template does not affect already-accepted sends, which carry their content rendered at accept time. Requires the send scope.
Loading code example
Loading code example
Authorizations
Authorizationstringheaderrequired
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
idstringrequired
The template id (`tmpl_…`).
Body
namestringLength:
>= 1htmlstringtextstringvariables_schemaobjectResponse
application/json
The updated template.
object"template"requiredAllowed values:
"template"idstringrequirednamestringrequiredhtmlstringrequiredtextstringrequiredvariables_schemaobjectrequiredOpaque JSON schema-ish object; only its `required` list is enforced, at send time.
created_atstring<date-time>requiredupdated_atstring<date-time>required