Delete a specific email template
You can delete an existing custom email template. However, if a template has ever been used to send rewards, it cannot be deleted.
Note:
- You cannot delete an email template that has been used to send rewards.
- (🚧 Coming soon) Email templates will soon be replaced by digital templates in Tango API. Digital templates support both text messaging and email formats. Email will continue to be the default mode of delivery.
Use the following endpoint to delete an existing email template.
Endpoint | Purpose |
---|---|
DELETE {URI}/emailTemplates/{etid} (deprecating soon) | Delete a specific email template on this platform. |
DELETE {URI}/digitalTemplates/{etid} (coming soon) | Delete a specific digital template on this platform including email and text messaging. |
The following path parameter can be used with this endpoint:
Path params | Data type | Description |
---|---|---|
etid | string | Email Template Identifier (ETID) is returned in the email template response payload. |
The following payload example is returned for when you successfully delete an email template:
No Content
Here's an example payload for when you receive an error:
{
"timestamp": "2025-02-21T23:23:13.930Z",
"requestId": "string",
"path": "string",
"httpCode": 0,
"httpPhrase": "string",
"i18nKey": "string",
"message": "The error message will show here for error codes ",
"errors": [
{}
]
}
The possible response codes for this endpoint are as follows. For details, see i18nkey codes and their error messages:
- 204 No Content
- 400 Bad Request
- 401 Unauthorized
- 403 Forbidden
- 404 Not Found
Updated about 23 hours ago