POST /protocols/bacnet/remote/devices/{remoteDeviceId}/objects/{objectType}/{objectInstance}/properties/{propertyName}/
FROM API REVISION 7.0
You can set the property value in the following two different ways:
The data can be sent in XML or JSON.
The priority
can be sent as a query parameter, identically as the arrayIndex
.
There are multiple possible values according the resource:
If this parameter is not present during the request, and error 415 Unsupported Media Type will be thrown.
This is the object type string value.
This is the instance of a specific BACnet object type.
This is the name of the property.
The Content-Length entity-header field indicates the size of the entity-body.
This is the BACnet priority.
If this query parameter is sent in the request but you don't want it to be apply, you should send -1
as it's value :
ex : ?arrayIndex=-1
Object Name: BacnetProperty
Property Name | Type | Description | Method |
---|---|---|---|
Name | String | This property is the name of the BACnet property. | GET |
IsArray | Boolean | This property indicates if the BACnet property is an array or not. | GET |
Implementation | String | GET | |
AsnValue | String | This property is the ASN value of a BACnet property encoded in Base64. | GET |
Value required |
String | This property is the readable value of a BACnet property. According the BACnet property, it's possible the type of this property vary. (See the description of the resource for more details) |
GET POST |
URL Example: https://0.0.0.0/api/rest/v1/protocols/bacnet/remote/devices/80140/objects/device/154183/properties/object-name
{
"value": "ECY-ABCDEFGH-12345"
}
URL Example: https://0.0.0.0/api/rest/v1/protocols/bacnet/remote/devices/80140/objects/device/154183/properties/object-name
<?xml version="1.0" encoding="utf-8"?>
<BacnetProperty>
<Value>ECY-ABCDEFGH-12345</Value>
</BacnetProperty>