POST api/Mail/SetMailRuleAction

SetMailNotifySetting

Request Information

URI Parameters

None.

Body Parameters

MailNotifySetting value

EmailRuleAction
NameDescriptionTypeAdditional information
ProjectID

integer

None.

RuleID

integer

None.

ID

integer

None.

IfByEmail

integer

None.

EmailFormatID

integer

None.

CustomerEmailFormatID

integer

None.

IfByPager

integer

None.

PagerEmailFormatID

integer

None.

IfByMobile

integer

None.

MobileEmailFormatID

integer

None.

IfByCellPhoneISM

integer

None.

CellPhoneISMFormatID

integer

None.

IfAlert

integer

None.

AlertLevel

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "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:
<EmailRuleAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Binding">
  <AlertLevel>14</AlertLevel>
  <CellPhoneISMFormatID>12</CellPhoneISMFormatID>
  <CustomerEmailFormatID>6</CustomerEmailFormatID>
  <EmailFormatID>5</EmailFormatID>
  <ID>3</ID>
  <IfAlert>13</IfAlert>
  <IfByCellPhoneISM>11</IfByCellPhoneISM>
  <IfByEmail>4</IfByEmail>
  <IfByMobile>9</IfByMobile>
  <IfByPager>7</IfByPager>
  <MobileEmailFormatID>10</MobileEmailFormatID>
  <PagerEmailFormatID>8</PagerEmailFormatID>
  <ProjectID>1</ProjectID>
  <RuleID>2</RuleID>
</EmailRuleAction>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SetMailNotifySetting

API_Data_Int32
NameDescriptionTypeAdditional 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>