Publish an email template
POST
/v1/email/templates/{template_id}/publish
curl -X POST "https://us1.platform.bird.com/v1/email/templates/{template_id}/publish" \
-H "Authorization: Bearer $TOKEN"Publishes the template's current draft as a new immutable, numbered version and makes it the live version used by sends. The draft remains editable for future changes. The draft must have a subject and a body; an empty draft is rejected.
Response Payload
id
string
required
Template version ID.
template_id
string
required
The template this version belongs to.
version_number
nullable integer
Sequential published-version number (1, 2, 3…). Null while the version is a draft.
status
string
required
Lifecycle status of this version.
revision
integer
required
The version's revision counter.
created_at
string
required
When this version was created.
published_at
nullable string
When this version was published, or null if it has not been published.