POST api/customers/{customerId}/gateways/{gatewayAssetId}/devices/{deviceAssetId}/control
Send a plan for when to turn on/off to a device.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId | integer |
Required |
|
gatewayAssetId | integer |
Required |
|
deviceAssetId | integer |
Required |
Body Parameters
If ValueTime is empty the command is executed immediately. Only 1 of the plans can have an empty ValueTime. NB! Use UTC time.
ControlsName | Description | Type | Additional information |
---|---|---|---|
ValueCategory | TimeSeriesTypeClass |
None. |
|
Plan | Collection of SimpleTimeSeriesValue |
None. |
Request Formats
application/json, text/json
Sample:
{ "ValueCategory": 1, "Plan": [ { "ValueTime": "2025-05-20T01:02:47.560847+00:00", "Value": 1.1 }, { "ValueTime": "2025-05-20T01:02:47.560847+00:00", "Value": 1.1 } ] }
text/html
Sample:
{"ValueCategory":1,"Plan":[{"ValueTime":"2025-05-20T01:02:47.560847+00:00","Value":1.1},{"ValueTime":"2025-05-20T01:02:47.560847+00:00","Value":1.1}]}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.