Templates Category
/ Edit template category
Edit template category
Method: POST
https://api-prod.enotifiers.com/api/V1/service/templatesCategory/updateRequest details
| Parameter | Description | Example |
|---|---|---|
|
oldTemplateCategoryName string |
The name of the template category before update. | test_3 |
|
newTemplateCategoryName string |
The updated name of the template category | test_4 |
Curl code
curl --location 'https://api-prod.enotifiers.com/api/V1/service/templatesCategory/update' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {{Authorization}}' \
--data '{
"oldTemplateCategoryName": "test_3",
"newTemplateCategoryName": "test_4"
}'
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 category updated successfully |
| data.mailName String |
Specifies the name of the newly created template category | test_4 |
| data.status String |
Indicates the status of the template category | updated |
{
"status": "success",
"code": "200",
"message": "Template category updated successfully.",
"data": {
"mailName": "test_4",
"status": "updated"
}
}Failure response details
| Parameter | Description | Example |
|---|---|---|
| status String |
Provides the status of the API | failed |
| code String |
Povides the HTTP code of the API | 400 |
| message String |
Provides the reason for the error | New template category already exists |
| data.error String |
Specifies the error message detailing why the operation failed |
New template category already exists |
{
"status": "failed",
"code": "400",
"message": "New template category already exists.",
"data": {
"error": "New template category already exists."
}
}