Skip to main content

Templates Category / Create template category

Create template category

Method: POST

https://api-prod.enotifiers.com/api/V1/service/templatesCategory/create

Request details

API Parameters
Parameter Description Example
templateCategoryName
string
Name of the template category that was created test_3

Curl code

Tabbed Interface
curl --location 'https://api-prod.enotifiers.com/api/V1/service/templatesCategory/create' \
            --header 'accept: application/json' \
            --header 'Content-Type: application/json' \
            --header 'Authorization: Basic {{Authorization}}' \            
            --data '{
              "templateCategoryName": "test_3"
            }'

Success response details

API Parameters
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 created successfully
data.mailName
String
Specifies the name of the newly created template category test_3
data.status
String
Indicates the status of the template category created
{
    "status": "success",
    "code": "200",
    "message": "Template category created successfully.",
    "data": {
        "mailName": "test_3",
        "status": "created"
    }
}

Failure response details

API Parameters
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 Template category already exists
data.error
String
Specifies the error message
detailing why the operation
failed
Template category already exists
{
    "status": "failed",
    "code": "400",
    "message": "Template category already exists.",
    "data": {
        "error": "Template category already exists."
    }
}
Document

Policy

Terms of Use

policy

© 2024 E-Notifiers. All rights reserved.