POST api/demandandcontrol/customers/{custId}/sites/{siteId}/settings
POST update threshold and device order settings
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
siteId |
Asset id for Site |
integer |
Required |
custId | string |
None. |
Body Parameters
The settings model used between APP and WebAPI
SettingsName | Description | Type | Additional information |
---|---|---|---|
Threshold | decimal number |
None. |
|
Order | Collection of DeviceOrder |
None. |
Request Formats
application/json, text/json
Sample:
{ "Threshold": 1.1, "Order": [ { "DeviceAssetId": 1, "Order": 2 }, { "DeviceAssetId": 1, "Order": 2 } ] }
text/html
Sample:
{"Threshold":1.1,"Order":[{"DeviceAssetId":1,"Order":2},{"DeviceAssetId":1,"Order":2}]}
Response Information
Resource Description
Updated settings object with threshold and device order
SiteName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Name | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": 1, "Name": "sample string 2" }
text/html
Sample:
{"Id":1,"Name":"sample string 2"}