Delete an email template draft
DELETE
/v1/email/templates/{template_ref}/versions/{version_id}
bird email templates versions delete <template-ref> <version-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/email/templates/{template_ref}/versions/{version_id}" \
-H "Authorization: Bearer $TOKEN"Discards the draft's unsaved work: its content resets to what is currently published (or to a single empty language when nothing has been published yet), so the draft matches what sends actually deliver again. Compare each language's content_hash against the published version's to see what a discard would throw away.
The draft itself remains, ready for new edits at a bumped revision, and what is published never changes. Only the draft can be discarded. Addressing a published version returns a 422 validation_error, because published versions are permanent history.
पैरामीटर
template_ref
string
The template's id (emt_…) or slug. On read, a built-in system template's bird_ slug also resolves here, to its one permanently published version. Discarding a draft requires a workspace template, because a system template has no draft and returns 404 not_found_error.
version_id
string
संबंधित संसाधन
इस विषय के लिए डॉक्यूमेंटेशन, गाइड और उदाहरणों के साथ आगे बढ़ें। संसाधन अंग्रेज़ी में हैं।
गाइड देखेंHow to build an email templateक्षमता जानेंEmail templatesलर्निंग पाथ फ़ॉलो करेंBuild your first integrationइम्प्लीमेंटेशन गाइडEmail templates
अभ्यास करें और इम्प्लीमेंटेशन ब्रीफ़ पाएँ