Delete template by name and language
Changed on Delete a template by name and language.
Please note that by default only draft is removed. Use query parameter `deleteSubmitted=true` to also remove the submitted template.
Once an approved template is deleted, the template cannot be recreated again with this name and language for 30 days. Consequently, be aware that you must use a different name to create template for this language within this 30 days long period.
If you need the template in this language soon, update the submitted template for a specific language instead of trying to delete and recreate it again.
Request
- Base URLhttps://provisioning.api.sinch.com
- URLhttps://provisioning.api.sinch.com/v1/projects/{projectId}/whatsapp/templates/{templateName}/languages/{languageCode}
- AuthHTTP basic and HTTP bearer and OAuth 2Client credentialsToken URL: https://auth.sinch.com/oauth2/token
Path parameters
The unique ID of the project. You can find this on the <a href="https://dashboard.sinch.com/">Sinch Dashboard</a>.
The unique name of the template.
The language code of the specific template.
Query parameters
Set this flag to true if you want to delete a template already submitted to Meta. Otherwise, it defaults to false, meaning that it deletes a template in "draft" state only, and throws an error if you attempt to delete a submitted template.
Response
Template deleted
Changes
- breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #1: ProjectNotInitializedErrorTitlesubschema #2: TemplateInvalidLanguageCodeErrorTitlefrom the response bodyoneOflist for the response status - info
removed
subschema #1: ResourceLockedErrorTitlesubschema #2: TemplateNotDeletableDueToInputConfigErrorTitlefrom the response bodyoneOflist for the response status - info
removed
subschema #1: TemplateNotFoundErrorTitlesubschema #2: TemplateChangesNotFoundErrorTitlefrom the response bodyoneOflist for the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
the response property
became required for the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
api operation id
TemplatesController_deleteTemplateByNameAndLanguage_v1removed and replaced withWhatsappTemplatesController_deleteTemplateByNameAndLanguage_v1
- info