Update a template

Partially update a template; omitted fields are left untouched.

PATCHhttps://api.mailfully.com/v1/templates/{id}

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

namestring
Length: >= 1
htmlstring
textstring
variables_schemaobject

Response

application/json

The updated template.

object"template"required
Allowed values: "template"
idstringrequired
namestringrequired
htmlstringrequired
textstringrequired
variables_schemaobjectrequired

Opaque JSON schema-ish object; only its `required` list is enforced, at send time.

created_atstring<date-time>required
updated_atstring<date-time>required