GET api/Mail/GetEmailNotificationRecipientList?projectID={projectID}&mailType={mailType}&ruleID={ruleID}
GetMailRuleList
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectID |
projectID |
integer |
Required |
mailType |
mailType |
integer |
Required |
ruleID |
ruleID |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GetMailRuleList
API_Data_ListOfEmailNotificationRecipientName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of EmailNotificationRecipient |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "ProjectID": 1, "NotificationRuleID": 2, "RecipientTypeID": 3, "RecipientID": 4, "RecipientScope": 5, "CCEmailAddress": "sample string 6", "SendOption": 7, "ScopeItems": [ 1, 2 ] }, { "ProjectID": 1, "NotificationRuleID": 2, "RecipientTypeID": 3, "RecipientID": 4, "RecipientScope": 5, "CCEmailAddress": "sample string 6", "SendOption": 7, "ScopeItems": [ 1, 2 ] } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfEmailNotificationRecipient xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding"> <d2p1:EmailNotificationRecipient> <d2p1:CCEmailAddress>sample string 6</d2p1:CCEmailAddress> <d2p1:NotificationRuleID>2</d2p1:NotificationRuleID> <d2p1:ProjectID>1</d2p1:ProjectID> <d2p1:RecipientID>4</d2p1:RecipientID> <d2p1:RecipientScope>5</d2p1:RecipientScope> <d2p1:RecipientTypeID>3</d2p1:RecipientTypeID> <d2p1:ScopeItems xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:ScopeItems> <d2p1:SendOption>7</d2p1:SendOption> </d2p1:EmailNotificationRecipient> <d2p1:EmailNotificationRecipient> <d2p1:CCEmailAddress>sample string 6</d2p1:CCEmailAddress> <d2p1:NotificationRuleID>2</d2p1:NotificationRuleID> <d2p1:ProjectID>1</d2p1:ProjectID> <d2p1:RecipientID>4</d2p1:RecipientID> <d2p1:RecipientScope>5</d2p1:RecipientScope> <d2p1:RecipientTypeID>3</d2p1:RecipientTypeID> <d2p1:ScopeItems xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </d2p1:ScopeItems> <d2p1:SendOption>7</d2p1:SendOption> </d2p1:EmailNotificationRecipient> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfEmailNotificationRecipient>