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

NameDescriptionTypeAdditional 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.

Controls
NameDescriptionTypeAdditional 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

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.