GET api/Mail/GetMailRuleList?projectID={projectID}&mailType={mailType}
GetMailRuleList
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
projectID |
projectID |
integer |
Required |
mailType |
mailType |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
GetMailRuleList
API_Data_ListOfEmailRuleName | Description | Type | Additional information |
---|---|---|---|
Success | boolean |
None. |
|
Error | ErrorInfo |
None. |
|
Data | Collection of EmailRule |
None. |
Response Formats
application/json, text/json
Sample:
{ "Success": true, "Error": { "ErrorCode": 1, "ErrorMessage": "sample string 1" }, "Data": [ { "ProjectID": 1, "Type": 2, "ID": 3, "Name": "sample string 4", "Note": "sample string 5", "TriggerID": 6, "ConditionID": 7, "RuleOrderNo": 8 }, { "ProjectID": 1, "Type": 2, "ID": 3, "Name": "sample string 4", "Note": "sample string 5", "TriggerID": 6, "ConditionID": 7, "RuleOrderNo": 8 } ] }
application/xml, text/xml
Sample:
<API_Data_ArrayOfEmailRule 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:EmailRule> <d2p1:ConditionID>7</d2p1:ConditionID> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Note>sample string 5</d2p1:Note> <d2p1:ProjectID>1</d2p1:ProjectID> <d2p1:RuleOrderNo>8</d2p1:RuleOrderNo> <d2p1:TriggerID>6</d2p1:TriggerID> <d2p1:Type>2</d2p1:Type> </d2p1:EmailRule> <d2p1:EmailRule> <d2p1:ConditionID>7</d2p1:ConditionID> <d2p1:ID>3</d2p1:ID> <d2p1:Name>sample string 4</d2p1:Name> <d2p1:Note>sample string 5</d2p1:Note> <d2p1:ProjectID>1</d2p1:ProjectID> <d2p1:RuleOrderNo>8</d2p1:RuleOrderNo> <d2p1:TriggerID>6</d2p1:TriggerID> <d2p1:Type>2</d2p1:Type> </d2p1:EmailRule> </Data> <Error> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 1</ErrorMessage> </Error> <Success>true</Success> </API_Data_ArrayOfEmailRule>