Update email template

Changes a template's draft. What's sent stays the published version until the draft is published again.

PATCH
/email/templates/{template}

Changes a template's draft. What's sent stays the published version until the draft is published again.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Path Parameters

template*string

Alias or id

Request Body

application/json
  1. body

Changes to a draft. Fields left out stay as they are; null clears the optional ones. New HTML replaces a design made in the dashboard.

alias?string|null
html?|

Replaces the content. A design made in the dashboard is dropped, and the text version is made again from this HTML unless text is given.

message_class?string|null
name?string|null
preheader?string|null
sender_identity_id?string|null
subject?string|null
text?|

null makes it again from the HTML.

variables?array<>|

Replaces the whole list; null or [] removes them all.

Response Body

The changed draft.

Example Request
curl -X PATCH 'https://api.relevate.app/email/templates/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
Empty