Templates
/ Delete templates
Delete templates
Method: POST
https://api-prod.enotifiers.com/api/V1/service/template/deleteRequest details
| Parameter | Description | Example |
|---|---|---|
|
templateName string |
The name of the email template. | test_2 |
|
templateCategory string |
The category of the email template. | testing_1 |
Curl code
curl --location --request DELETE
'https://api-prod.enotifiers.com/api/V1/service/template/delete' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {{basic_auth}}' \
--data '{
"templateName": "test_2",
"templateCategory": "testing_1"
}'
Success response details
| Parameter | Description | Example |
|---|---|---|
| status String |
Provides the status of the API | success |
| code String |
Povides the HTTP code of the API | 200 |
| message String |
A message indicating the success of the operation. |
template deleted successfully |
| data.templateName String |
Specifies the name of the deleted template service. |
test_2 |
| data.status String |
Indicates the status of the deleted template service |
deleted |
{
"status": "success",
"code": "200",
"message": "Template deleted successfully.",
"data": {
"templateName": "test_2",
"status": "deleted"
}
}Failure response details
| Parameter | Description | Example |
|---|---|---|
| status String |
Indicates the overall status of the API request. |
failed |
| code String |
Provides the HTTP status code corresponding to the failure. |
400 |
| message String |
Provides the reason for the error | Template does not exists |
| data.error String |
Specific error message providing more context about the issue. |
Template not found |
{
"status": "failed",
"code": "400",
"message": "Template not found.",
"data": {
"error": "Template details does not exist."
}
}