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.
Treść odpowiedzi
id
string
wymagane
Template version ID.
template_id
string
wymagane
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
wymagane
Lifecycle status of this version.
revision
integer
wymagane
The version's revision counter.
created_at
string
wymagane
When this version was created.
published_at
nullable string
When this version was published, or null if it has not been published.