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

Add alarm codes for a property Processes this property API request. The parameter and response sections describe the data exchanged with the API.

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

The name value.

string

None.

Code

The code value.

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

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

Response Information

Resource Description

The response returned after the operation completes.

Collection of PropertyAlarmDataContract
NameDescriptionTypeAdditional information
Name

The name value.

string

None.

Code

The code value.

string

None.

Id

The unique identifier of this resource.

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
  }
]