POST api/Mail/AddOrEditEmailNotificationTrigger
SetMailNotifySetting
Request Information
URI Parameters
None.
Body Parameters
NotificationSubscriber value
EmailNotificationTrigger| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectID | integer |
None. |
|
| TriggerID | integer |
None. |
|
| TriggerTypeID | integer |
None. |
|
| TriggerName | string |
None. |
|
| FieldID | integer |
None. |
|
| ChangeFromID | integer |
None. |
|
| ChangeToID | integer |
None. |
|
| FieldChangeItemName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectID": 1,
"TriggerID": 2,
"TriggerTypeID": 1,
"TriggerName": "sample string 3",
"FieldID": 1,
"ChangeFromID": 1,
"ChangeToID": 1,
"FieldChangeItemName": "sample string 4"
}
application/xml, text/xml
Sample:
<EmailNotificationTrigger xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB"> <ChangeFromID>1</ChangeFromID> <ChangeToID>1</ChangeToID> <FieldChangeItemName>sample string 4</FieldChangeItemName> <FieldID>1</FieldID> <ProjectID>1</ProjectID> <TriggerID>2</TriggerID> <TriggerName>sample string 3</TriggerName> <TriggerTypeID>1</TriggerTypeID> </EmailNotificationTrigger>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SetMailNotifySetting
API_Data_Int32| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
|
| Data | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
},
"Data": 2
}
application/xml, text/xml
Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Data>2</Data>
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</API_Data_int>