POST api/Customer/UpdateServerAlerts

Insert/Update Server Alert details. User need to call API multiple times for insert/update each server Alerts.

Request Information

URI Parameters

None.

Body Parameters

JSON string

Collection of DeviceAlarmSettingsObject
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.

Polarity

Object

None.

RateOfChange

Object

None.

DaysToEmptyAlarm

Object

None.

NotifyBy

Object

None.

NotifySMSTo

Object

None.

NotifyEmailTo

Object

None.

NotifyPush

Object

None.

Hystresis

Object

None.

Status

Object

None.

CreatedBy

Object

None.

CreatedDateTime

Object

None.

CreatedIp

Object

None.

ModifiedBy

Object

None.

ModifiedDateTime

Object

None.

ModifiedIp

Object

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": {},
    "CustomerDeviceID": {},
    "AlarmID": {},
    "AlarmType": {},
    "TankLevel": {},
    "LevelMinValue": {},
    "LevelMaxValue": {},
    "LevelMeasureIn": {},
    "Polarity": {},
    "RateOfChange": {},
    "DaysToEmptyAlarm": {},
    "NotifyBy": {},
    "NotifySMSTo": {},
    "NotifyEmailTo": {},
    "NotifyPush": {},
    "Hystresis": {},
    "Status": {},
    "CreatedBy": {},
    "CreatedDateTime": {},
    "CreatedIp": {},
    "ModifiedBy": {},
    "ModifiedDateTime": {},
    "ModifiedIp": {}
  },
  {
    "ID": {},
    "CustomerDeviceID": {},
    "AlarmID": {},
    "AlarmType": {},
    "TankLevel": {},
    "LevelMinValue": {},
    "LevelMaxValue": {},
    "LevelMeasureIn": {},
    "Polarity": {},
    "RateOfChange": {},
    "DaysToEmptyAlarm": {},
    "NotifyBy": {},
    "NotifySMSTo": {},
    "NotifyEmailTo": {},
    "NotifyPush": {},
    "Hystresis": {},
    "Status": {},
    "CreatedBy": {},
    "CreatedDateTime": {},
    "CreatedIp": {},
    "ModifiedBy": {},
    "ModifiedDateTime": {},
    "ModifiedIp": {}
  }
]

application/xml, text/xml

Sample:
<ArrayOfDeviceAlarmSettingsObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrategicAlliance">
  <DeviceAlarmSettingsObject>
    <AlarmID />
    <AlarmType />
    <CreatedBy />
    <CreatedDateTime />
    <CreatedIp />
    <CustomerDeviceID />
    <DaysToEmptyAlarm />
    <Hystresis />
    <ID />
    <LevelMaxValue />
    <LevelMeasureIn />
    <LevelMinValue />
    <ModifiedBy />
    <ModifiedDateTime />
    <ModifiedIp />
    <NotifyBy />
    <NotifyEmailTo />
    <NotifyPush />
    <NotifySMSTo />
    <Polarity />
    <RateOfChange />
    <Status />
    <TankLevel />
  </DeviceAlarmSettingsObject>
  <DeviceAlarmSettingsObject>
    <AlarmID />
    <AlarmType />
    <CreatedBy />
    <CreatedDateTime />
    <CreatedIp />
    <CustomerDeviceID />
    <DaysToEmptyAlarm />
    <Hystresis />
    <ID />
    <LevelMaxValue />
    <LevelMeasureIn />
    <LevelMinValue />
    <ModifiedBy />
    <ModifiedDateTime />
    <ModifiedIp />
    <NotifyBy />
    <NotifyEmailTo />
    <NotifyPush />
    <NotifySMSTo />
    <Polarity />
    <RateOfChange />
    <Status />
    <TankLevel />
  </DeviceAlarmSettingsObject>
</ArrayOfDeviceAlarmSettingsObject>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResult
NameDescriptionTypeAdditional information
Status

integer

None.

Description

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "Description": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/sscTeklekWebAPI.Models">
  <Data />
  <Description>sample string 2</Description>
  <Status>1</Status>
</APIResult>