This endpoint creates an asynchronously executed command request to change schedule of HVAC.
curl --request POST \ --url https://api.energy-hub.io/v1.0.0/hvacs/{hvacId}/commands/schedule \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "schedules": [ { "mode": "HEAT", "start": { "time": "00:00", "day": "MONDAY" }, "temperature": 21.1, "end": { "time": "00:00", "day": "MONDAY" } } ] }'
200
example
{ "createdAt": "2023-11-07T05:31:56Z", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "state": "PENDING", "type": "SET_TEMPERATURE", "userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9", "deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"}
API key used for authorization and authentication.
HVAC ID
New schedule to set. UTC expected.
Successful operation
The response is of type object.
object