Transaction Email
/ Update email (transactional)
Update email (transactional)
Method: PUT
https://api-prod.enotifiers.com/docs/api/V1/email/sendRequest details
| Parameter | Description | Example |
|---|---|---|
|
sourceEmail string |
The source email for the service. | example@company.in |
|
mailName string |
The name of the email. | email_test |
|
templateCategory string |
The category of the email template. | testing_1 |
|
templateName string |
The name of the email template. | email_test |
|
subject string |
The subject of the email. | email_test |
|
description string |
Description of the email service. | This email is sent to test |
|
groupName string |
The group name associated with the email service. | test |
Curl code
curl --location --request PUT
'https://api-prod.enotifiers.com/api/V1/service/email/update' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic {{Authorization}}' \
--data-raw '{
"sourceEmail": "example@company.in",
"mailName": "email_test",
"templateCategory": "testing_1",
"templateName": "test_2",
"subject": "email_test",
"description": "Abcd",
"groupName": "Xyz"
}'
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. |
mail updated successfully |
| data.mailName String |
Specifies the name of the updated email service. | email_test |
| data.status String |
Indicates the status of the updated email service | updated |
"status": "success",
"code": "200",
"message": "Email updated successfully.",
"data": {
"mailName": "email_test",
"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 | email does not exist |
| data.error String |
Specifies the error message detailing why the operation failed |
email does not exist |
{
"status": "failed",
"code": "400",
"message": "Email does not exist.",
"data": {
"error": "Email does not exist."
}
}