BPAPI Methods

BPAPI method Device/AddProperty

Device/AddProperty

Adds a user-defined property for the devices identified by {id}

Authorization required: Yes

HTTP methods allowed: GET, POST

Syntax: Device/{id}/AddProperty/{property_name}/{value}/  Details   Details   Details 

Adds a user-defined property for the devices identified by {id}
May also be used for changing the value of an existing property.
{id} may be any of node_id, user_defined_name, user_defined_group_name and bpapi_device_id
See Device for more information about what kind of id's that can be used

Note that this method may possibly not be used to execute commands at the Gateway.
You may possibly not for instance change switch_state with this method. Although switch_state may be queried as a property with Device/Property (with {name} = 'switch_state') you have to set it with Device/TurnOn or Device/TurnOff


Unit-tests: 2 test(s)

Popularity: 3819869 (number of times method has been accessed)

Documentation and tests automatically generated from source-code 2020-04-07 11:17