POST /protocols/nlight/settings/features
FROM API REVISION 4.0
You can post an array of feature to set all the features at once.
The name need to be the exact name of the GET response.
If a process is currently running the error 422 Unprocessable entity will be return. The process need to be finished or stopped to start another one.
After the response of this resource the execution can take a few seconds.
To follow the process you can access the resource [Bacnet Mapping process](http://eclypseapi.distech-controls.com/restApi/nlight/resources/1150/GET "BACnet mapping process").
If this parameter is not in the request, the Application/Json will be chosen by default.
There are multiple possible values (according the resource):
The first two are the most often used.
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.
The Content-Length entity-header field indicates the size of the entity-body.
Object Name: Features
Property Name | Type | Description | Method |
---|---|---|---|
Features | Array<Feature> | This is an array of nLight feature. | GET |
Object Name: Feature
Property Name | Type | Description | Method |
---|---|---|---|
CreateBacnetObject | Boolean | Set this property to true to create the corresponding BACnet object on the device. Otherwise set it to false to delete them. | GET POST |
Name | String | The name of the nLight feature. | GET POST |
RealName | String | This is the non truncated nLight name. | GET |
URL Example: https://0.0.0.0/api/rest/v1/protocols/nlight/settings/features
[
{
"name": "dimOutput",
"createBacnetObject": true
},
{
"name": "measLight",
"createBacnetObject": true
},
{
"name": "occupied",
"createBacnetObject": true
},
{
"name": "photoInhibit",
"createBacnetObject": false
},
{
"name": "dimInput",
"createBacnetObject": false
},
{
"name": "activeLoad",
"createBacnetObject": false
},
{
"name": "profileState",
"createBacnetObject": true
},
{
"name": "online",
"createBacnetObject": false
},
{
"name": "relayState",
"createBacnetObject": true
}
]
URL Example: https://0.0.0.0/api/rest/v1/protocols/nlight/settings/features
<?xml version="1.0" encoding="utf-8"?>
<Features>
<Feature>
<CreateBacnetObject>true</CreateBacnetObject>
<Name>dimOutput</Name>
</Feature>
<Feature>
<CreateBacnetObject>true</CreateBacnetObject>
<Name>measLight</Name>
</Feature>
<Feature>
<CreateBacnetObject>true</CreateBacnetObject>
<Name>occupied</Name>
</Feature>
<Feature>
<CreateBacnetObject>false</CreateBacnetObject>
<Name>photoInhibit</Name>
</Feature>
<Feature>
<CreateBacnetObject>false</CreateBacnetObject>
<Name>dimInput</Name>
</Feature>
<Feature>
<CreateBacnetObject>false</CreateBacnetObject>
<Name>activeLoad</Name>
</Feature>
<Feature>
<CreateBacnetObject>true</CreateBacnetObject>
<Name>profileState</Name>
</Feature>
<Feature>
<CreateBacnetObject>false</CreateBacnetObject>
<Name>online</Name>
</Feature>
<Feature>
<CreateBacnetObject>true</CreateBacnetObject>
<Name>relayState</Name>
</Feature>
</Features>