POST api/AlertGroup

Request Information

URI Parameters

None.

Body Parameters

AlertGroupRequest
NameDescriptionTypeAdditional information
ID

integer

None.

BuildingID

integer

None.

GroupID

integer

None.

Name

string

None.

SiteIDs

Collection of string

None.

UserIDs

Collection of string

None.

TrafficAlert

boolean

None.

RtuAlert

boolean

None.

PoorFeedbackAlert

boolean

None.

PanelReportAlert

boolean

None.

SmartSensorAlert

boolean

None.

SensorFaultAlert

boolean

None.

SMS

boolean

None.

Email

boolean

None.

FCM

boolean

None.

Category

integer

None.

FaultySensorCategory

integer

None.

SubmitBy

integer

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "BuildingID": 2,
  "GroupID": 3,
  "Name": "sample string 4",
  "SiteIDs": [
    "sample string 1",
    "sample string 2"
  ],
  "UserIDs": [
    "sample string 1",
    "sample string 2"
  ],
  "TrafficAlert": true,
  "RtuAlert": true,
  "PoorFeedbackAlert": true,
  "PanelReportAlert": true,
  "SmartSensorAlert": true,
  "SensorFaultAlert": true,
  "SMS": true,
  "Email": true,
  "FCM": true,
  "Category": 14,
  "FaultySensorCategory": 15,
  "SubmitBy": 16,
  "Token": "sample string 17"
}

application/xml, text/xml

Sample:
<AlertGroupRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/M2senseWebApiProject.Models">
  <BuildingID>2</BuildingID>
  <Category>14</Category>
  <Email>true</Email>
  <FCM>true</FCM>
  <FaultySensorCategory>15</FaultySensorCategory>
  <GroupID>3</GroupID>
  <ID>1</ID>
  <Name>sample string 4</Name>
  <PanelReportAlert>true</PanelReportAlert>
  <PoorFeedbackAlert>true</PoorFeedbackAlert>
  <RtuAlert>true</RtuAlert>
  <SMS>true</SMS>
  <SensorFaultAlert>true</SensorFaultAlert>
  <SiteIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SiteIDs>
  <SmartSensorAlert>true</SmartSensorAlert>
  <SubmitBy>16</SubmitBy>
  <Token>sample string 17</Token>
  <TrafficAlert>true</TrafficAlert>
  <UserIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </UserIDs>
</AlertGroupRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.