POST api/property/{id}/alarms/add

Add alarm codes for a property

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The property id

integer

Required

Body Parameters

A collection of alarm codes to add

Collection of PropertyAlarmAddDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Code

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Code": "sample string 2"
  },
  {
    "Name": "sample string 1",
    "Code": "sample string 2"
  }
]

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of PropertyAlarmDataContract
NameDescriptionTypeAdditional information
Name

string

None.

Code

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Id": 3
  },
  {
    "Name": "sample string 1",
    "Code": "sample string 2",
    "Id": 3
  }
]