curl --request POST \
--url https://api.amberflow.io/v1/groups/{group_id}/control \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"type": "MAX_CONSUMPTION"
}'
{
"id": "ctrl_test8j9ahjsdf",
"created_at": "2025-05-13T11:52:00+00:00",
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"type": "MAX_PRODUCTION",
"results": [
{
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"isp": 1,
"before": 100,
"after": 10,
"delta": -90
}
]
}
Set a control action for a group.
curl --request POST \
--url https://api.amberflow.io/v1/groups/{group_id}/control \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"type": "MAX_CONSUMPTION"
}'
{
"id": "ctrl_test8j9ahjsdf",
"created_at": "2025-05-13T11:52:00+00:00",
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"type": "MAX_PRODUCTION",
"results": [
{
"time_from": "2025-05-13T11:52:00+00:00",
"time_to": "2025-05-13T12:52:00+00:00",
"isp": 1,
"before": 100,
"after": 10,
"delta": -90
}
]
}
Successful Response
The response is of type object
.