Publish email template

Publishes the draft as a new version, which sends by alias use from then on. The same checks as publishing in the dashboard. A draft that hasn't changed since the current version keeps that version (`created: false`).

POST
/email/templates/{template}/publish

Publishes the draft as a new version, which sends by alias use from then on. The same checks as publishing in the dashboard. A draft that hasn't changed since the current version keeps that version (created: false).

Authorization

headerAuthorizationBearer <Relevate API key>

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

Path Parameters

template*string

Alias or id

Response Body

The published version, and whether this publish created it.

Example Request
curl -X POST 'https://api.relevate.app/email/templates/string/publish'
Example Response
Empty