Overview
This request deletes a single transactional template using the template ID provided in the request
Endpoint
| Method | URL | Parameters |
|---|---|---|
| DELETE | https://api.everlytic.net/transactional/email/v1/templates/[Template ID] | [Template ID] – Unique string ID of the template to be deleted |
Example Request
curl --location --request DELETE 'https://api.everlytic.net/transactional/email/v1/templates/b93d670f-0032-41e9-902f-f5e2840436c9'
Response
Status codes
| Status code | Explanation |
|---|---|
| 200 Ok | Template was retrieved successfully |
| 401 Unauthorized | The provided authorization credentials are incorrect |
| 403 Forbidden | This user does not have access to Transactional Emails |
Properties
Properties of responses with status 200
| Property | Description | Data type | Parameter |
|---|---|---|---|
| status | The success state of the delete request | boolean |
|
Properties of responses with 4XX status
| Property | Description | Data type | Expected parameters |
|---|---|---|---|
| code | The HTTP response status code | integer |
|
| message | The reason for the failure | string | Valid string |
| error | Array containing errors field | JSON |
|
| errors | Array containing the failure details | JSON |
|
| domain | The classification of the type of error | string |
|
| reason | Keyword used to describe the error | string |
|
| message | Text describing the reason for the failure | string | Valid string |
| locationType | The location where the failure occurred | string |
|
| location | The type of validation that failed | string |
|
Example responses
Successful deletion [200 OK]
{
"status": true
}
Nothing to delete [200 OK]
{
"status": false
}
Invalid/Missing authorization credentials [401 Unauthorized]
{
"code": 401,
"message": "Login Required",
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Login Required",
"locationType": "request",
"location": "authorization"
}
]
}
}