Templates

Update a template by id or alias

patch/templates/{id}

Request

  • Base URL: https://api.groundmail.dev
  • URL: https://api.groundmail.dev/templates/{id}
  • Auth: HTTP bearer

Path parameters

idstring required

Request body

namestring
subjectstring
format'html' | 'blocks'
preheaderstring nullable
htmlstring nullable
textstring nullable
designobject nullable
aliasstring nullable
variablesstring[] nullable
unsubscribe_enabledboolean
category'transactional' | 'product'

newsletter is rejected with a validation_error: templates are for transactional and product email. Approved accounts send newsletters with category: newsletter on POST /emails.

folderstring nullable

Move it to this folder, matched by name (any case) and created when it does not exist. null or an empty string takes it out of any folder.

Response

Template updated

Changes

No recorded changes to this operation across all 2 revisions of this API.