POST api/AlertSetting/StaticAlarm/Edit

Add and Edit StaticAlarm

Request Information

URI Parameters

None.

Body Parameters

StaticAlarmObject
NameDescriptionTypeAdditional information
ID

Object

None.

CustomerDeviceID

Object

None.

AlarmID

Object

None.

AlarmType

Object

None.

TankLevel

Object

None.

LevelMinValue

Object

None.

LevelMaxValue

Object

None.

LevelMeasureIn

Object

None.

NotifyBy

Object

None.

NotifySMSTo

Object

None.

NotifyEmailTo

Object

None.

NotifyPush

Object

None.

Status

Object

None.

TankCapacity

Object

None.

ProductName

Object

None.

lstStaticAlarm

Collection of CustomerDeviceAlarmSettings

None.

Request Formats

application/json, text/json

Sample:
{
  "lstStaticAlarm": [
    {
      "Id": 1,
      "Level": 2,
      "Status": {},
      "TankLevel": {},
      "LevelMeasureIn": {},
      "LevelMaxValue": 6,
      "LevelMinValue": 7,
      "AlarmID": {},
      "AlarmType": {},
      "NotifyBy": {},
      "NotifySMSTo": {},
      "NotifyEmailTo": {},
      "NotifyPush": {},
      "Polarity": {},
      "RateOfChange": {},
      "Hystresis": {}
    },
    {
      "Id": 1,
      "Level": 2,
      "Status": {},
      "TankLevel": {},
      "LevelMeasureIn": {},
      "LevelMaxValue": 6,
      "LevelMinValue": 7,
      "AlarmID": {},
      "AlarmType": {},
      "NotifyBy": {},
      "NotifySMSTo": {},
      "NotifyEmailTo": {},
      "NotifyPush": {},
      "Polarity": {},
      "RateOfChange": {},
      "Hystresis": {}
    }
  ],
  "ID": {},
  "CustomerDeviceID": {},
  "AlarmID": {},
  "AlarmType": {},
  "TankLevel": {},
  "LevelMinValue": {},
  "LevelMaxValue": {},
  "LevelMeasureIn": {},
  "NotifyBy": {},
  "NotifySMSTo": {},
  "NotifyEmailTo": {},
  "NotifyPush": {},
  "Status": {},
  "TankCapacity": {},
  "ProductName": {},
  "CreatedBy": {},
  "CreatedDateTime": {},
  "CreatedIp": {},
  "ModifiedBy": {},
  "ModifiedDateTime": {},
  "ModifiedIp": {}
}

application/xml, text/xml

Sample:
<AlarmDetails.StaticAlarmObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sscTeklekWebAPI.Models">
  <AlarmID />
  <AlarmType />
  <CreatedBy />
  <CreatedDateTime />
  <CreatedIp />
  <CustomerDeviceID />
  <ID />
  <LevelMaxValue />
  <LevelMeasureIn />
  <LevelMinValue />
  <ModifiedBy />
  <ModifiedDateTime />
  <ModifiedIp />
  <NotifyBy />
  <NotifyEmailTo />
  <NotifyPush />
  <NotifySMSTo />
  <ProductName />
  <Status />
  <TankCapacity />
  <TankLevel />
  <lstStaticAlarm xmlns:d2p1="http://schemas.datacontract.org/2004/07/StrategicAlliance">
    <d2p1:CustomerDeviceAlarmSettings>
      <d2p1:AlarmID />
      <d2p1:AlarmType />
      <d2p1:Hystresis />
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Level>2</d2p1:Level>
      <d2p1:LevelMaxValue>6</d2p1:LevelMaxValue>
      <d2p1:LevelMeasureIn />
      <d2p1:LevelMinValue>7</d2p1:LevelMinValue>
      <d2p1:NotifyBy />
      <d2p1:NotifyEmailTo />
      <d2p1:NotifyPush />
      <d2p1:NotifySMSTo />
      <d2p1:Polarity />
      <d2p1:RateOfChange />
      <d2p1:Status />
      <d2p1:TankLevel />
    </d2p1:CustomerDeviceAlarmSettings>
    <d2p1:CustomerDeviceAlarmSettings>
      <d2p1:AlarmID />
      <d2p1:AlarmType />
      <d2p1:Hystresis />
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Level>2</d2p1:Level>
      <d2p1:LevelMaxValue>6</d2p1:LevelMaxValue>
      <d2p1:LevelMeasureIn />
      <d2p1:LevelMinValue>7</d2p1:LevelMinValue>
      <d2p1:NotifyBy />
      <d2p1:NotifyEmailTo />
      <d2p1:NotifyPush />
      <d2p1:NotifySMSTo />
      <d2p1:Polarity />
      <d2p1:RateOfChange />
      <d2p1:Status />
      <d2p1:TankLevel />
    </d2p1:CustomerDeviceAlarmSettings>
  </lstStaticAlarm>
</AlarmDetails.StaticAlarmObject>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.