POST api/property/{id}/alarms/add
Add alarm codes for a property
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
The property id |
integer |
Required |
Body Parameters
A collection of alarm codes to add
Collection of Dezrez.Core.DataContracts.External.Api.Property.Command.AddAlarm.PropertyAlarmAddDataContractName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Code | 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
Collection of Dezrez.Core.DataContracts.External.Api.Property.Query.Get.PropertyAlarmDataContractName | Description | Type | Additional 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 } ]