Templates

Publish a template

Publish the current draft. From then on, sends that name this template render this version; later edits change only the draft until the next publish. Pass the updated_at you loaded as expected_updated_at to publish only that version: if the template changed since, it answers 409 revision_conflict. Requires the email:send scope.

post/v1/templates/{id}/publish

Request

  • Base URL: https://smtpfa.st/api
  • URL: https://smtpfa.st/api/v1/templates/{id}/publish
  • Auth: HTTP bearer

Path parameters

idstring required

The template id or alias

Request body

expected_updated_atstring date-time

Not in Resend. The updated_at you loaded.

Response

Template published

idstring
objectstring
updated_atstring date-time

Not in Resend. The revision this write created.

status'draft' | 'published'

Not in Resend.

published_atstring date-time nullable

Not in Resend.

has_unpublished_versionsboolean

Not in Resend.

Example response

{
  "id": "clx_tpl123",
  "object": "template"
}

Changes

No recorded changes to this operation across all 1 revision of this API.