Delete a specific digital template
Digital templates support both text messages and email formats. Email is the default mode of delivery. You can delete an existing custom digital template. However, if the 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.
Use the following endpoint to delete an existing email template.
Endpoint | Purpose |
---|---|
DELETE {URI}/digitalTemplates/{etid} | 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 | The template ID (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:
Response code | Meaning |
---|---|
204 | The server has successfully processed the request, but there is no content to return in the response body. |
400 | The server could not understand the request due to invalid syntax. |
401 | Authentication is required and has either not been provided or failed. |
403 | The server understood the request but refuses to authorize it. |
404 | The server could not find the requested resource. In other words, the URL you’re trying to access doesn’t point to anything that exists on the server. |
500 | Something went wrong on the server, but the server cannot be more specific about what the exact problem is. |
503 | The server is currently unable to handle the request due to temporary overload or maintenance. |
Updated 3 days ago