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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

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