/gateways/{eui64}/streamer/capacity-peaks/configuration
Sets the capacity peak threshold in the cp_mgmt shadow for a specific device. Edge events must be enabled for the device's label partner before the shadow can be updated. When threshold_value is provided with enabled=true, it is converted from watts to watt-hours and written to the shadow alongside enabled. When threshold_value is omitted with enabled=true, only the enabled flag is updated — this is permitted only if the device's cp_mgmt shadow already has a threshold configured; otherwise threshold_value is required.
The EUI64 of the device in hexadecimal format.
000d6f000011bcb3Contains the capacity peak threshold configuration. enabled is required. threshold_value is required when enabling for the first time; omit it to reuse the previously configured value.
Indicates whether capacity peak alerts are active.
The capacity peak threshold in Watts. Required when enabling for the first time. If omitted on subsequent enabled=true requests, the previously set value is reused. Ignored when enabled=false.
Successful operation
The success message returned.
Invalid request:
- Request body is required but was not provided.
- Schema validation failed due to error: Missing required key: 'enabled'.
- Schema validation failed due to error: Value for key 'threshold_value' must be at least 1.
- 'threshold_value' is required when enabling capacity peaks for the first time. No previously configured threshold was found for this device.
- Edge events are not enabled for label partner '{labelpartner}'.
Not found:
- 400: The device '{eui64}' is not available in the IoT Thing registry.
Internal server error
PUT /v2/gateways/{eui64}/streamer/capacity-peaks/configuration HTTP/1.1
Host: device-management.n2g-dev.net
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"enabled": true,
"threshold_value": 1
}{
"message": "text"
}Last updated
Was this helpful?

