Delete a template's open draft
DELETE
/v1/whatsapp/templates/{template_ref}/versions/{version_id}await bird.whatsapp.templates.versions.delete("order_update", "wav_01krdgeqcxet5s7t44vh8rt9mg");client.whatsapp.templates.versions.delete("order_update", "wav_01krdgeqcxet5s7t44vh8rt9mg")if err := client.Whatsapp.Templates.Versions.Delete(context.Background(), "order_update", "wav_01krdgeqcxet5s7t44vh8rt9mg"); err != nil {
log.Fatal(err)
}$bird->whatsapp->templates->versions->delete('order_update', 'wav_01krdgeqcxet5s7t44vh8rt9mg');bird whatsapp templates versions delete <template-ref> <version-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/whatsapp/templates/{template_ref}/versions/{version_id}" \
-H "Authorization: Bearer $TOKEN"Deletes the draft and leaves the template without an open draft. Use Create a template draft to create another. Deleting a draft does not change the version used for sends, and submitted versions are immutable.
The email channel has an operation of the same name and shape that behaves differently: there, the draft's content resets to what is published and the draft itself remains. On WhatsApp the draft is gone until a new one is opened.
पैरामीटर
template_refstringTemplate ID (wat_ prefix) or slug. A value that parses as a valid ID resolves by ID; any other value resolves as a slug.
version_idstringID of the template version (wav_ prefix), as returned by the version list.
संबंधित संसाधन
इस विषय के लिए दस्तावेज़, गाइड और उदाहरणों के साथ आगे बढ़ें।