Delete one language from a draft
DELETE
/v1/email/templates/{template_ref}/versions/{version_id}/languages/{language}
bird email templates versions languages delete <template-ref> <version-id> <language> --yescurl -X DELETE "https://us1.platform.bird.com/v1/email/templates/{template_ref}/versions/{version_id}/languages/{language}" \
-H "Authorization: Bearer $TOKEN"Removes one language from the template's draft, along with its content. Every other language is untouched, and the change takes effect for sends when you next submit.
The draft's current default language cannot be removed on its own. Point the default at a different language first, then remove the old one; doing it in the other order returns a 422 validation_error. Removing a language the draft does not have returns a 404 not_found_error, and only a draft can be changed, so addressing a published version also returns a 422 validation_error.
Parameters
template_ref
string
The template's id (emt_…) or slug. On read, a built-in system template's bird_ slug also resolves here. Writing or removing a language requires a workspace template, because a system template has no draft to edit and returns 404 not_found_error.
version_id
string
language
string
Gerelateerde bronnen
Ga verder met de documentatie, gidsen en voorbeelden voor dit onderwerp. De bronnen zijn in het Engels.
Bekijk de gidsHow to build an email templateOntdek de mogelijkheidEmail templatesVolg het leerpadBuild your first integrationImplementatiegidsEmail templates
Probeer de oefening en ontvang een implementatieoverzicht