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.

Use the following endpoint to delete an existing email template.

EndpointPurpose
DELETE {URI}/emailTemplates/{etid}Delete a specific email template on this platform.

The following path parameter can be used with this endpoint:

Path paramsData typeDescription
etidstringEmail 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:

  • 204 No Content
  • 400 Bad Request
  • 401 Unauthorized
  • 403 Forbidden
  • 404 Not Found

Rewards as a Service™ and the RaaS® API are provided by Tango Card, Inc. © 2024 Tango Card, Inc.