GET api/Mail/GetMailRuleAction?projectID={projectID}&ruleID={ruleID}

GetMailSetting

Request Information

URI Parameters

NameDescriptionTypeAdditional information
projectID

projectID

integer

Required

ruleID

ruleID

integer

Required

Body Parameters

None.

Response Information

Resource Description

GetMailSetting

API_Data_EmailRuleAction
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

EmailRuleAction

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "ProjectID": 1,
    "RuleID": 2,
    "ID": 3,
    "IfByEmail": 4,
    "EmailFormatID": 5,
    "CustomerEmailFormatID": 6,
    "IfByPager": 7,
    "PagerEmailFormatID": 8,
    "IfByMobile": 9,
    "MobileEmailFormatID": 10,
    "IfByCellPhoneISM": 11,
    "CellPhoneISMFormatID": 12,
    "IfAlert": 13,
    "AlertLevel": 14
  }
}

application/xml, text/xml

Sample:
<API_Data_EmailRuleAction 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:AlertLevel>14</d2p1:AlertLevel>
    <d2p1:CellPhoneISMFormatID>12</d2p1:CellPhoneISMFormatID>
    <d2p1:CustomerEmailFormatID>6</d2p1:CustomerEmailFormatID>
    <d2p1:EmailFormatID>5</d2p1:EmailFormatID>
    <d2p1:ID>3</d2p1:ID>
    <d2p1:IfAlert>13</d2p1:IfAlert>
    <d2p1:IfByCellPhoneISM>11</d2p1:IfByCellPhoneISM>
    <d2p1:IfByEmail>4</d2p1:IfByEmail>
    <d2p1:IfByMobile>9</d2p1:IfByMobile>
    <d2p1:IfByPager>7</d2p1:IfByPager>
    <d2p1:MobileEmailFormatID>10</d2p1:MobileEmailFormatID>
    <d2p1:PagerEmailFormatID>8</d2p1:PagerEmailFormatID>
    <d2p1:ProjectID>1</d2p1:ProjectID>
    <d2p1:RuleID>2</d2p1:RuleID>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_EmailRuleAction>