Skip to main content
GET
/
api
/
zones
/
{zoneId}
/
history
Get zone history
curl --request GET \
  --url http://aris.local/api/zones/{zoneId}/history \
  --header 'Authorization: Bearer <token>'
{
  "zoneId": "<string>",
  "start": "2023-11-07T05:31:56Z",
  "end": "2023-11-07T05:31:56Z",
  "points": [
    {
      "timestamp": "2023-11-07T05:31:56Z",
      "tempC": 123,
      "tempHeatSetC": 123,
      "tempCoolSetC": 123
    }
  ],
  "count": 123,
  "warning": "<string>"
}

Authorizations

Authorization
string
header
required

Session token or API token

Path Parameters

zoneId
string
required

Query Parameters

start
string<date-time>

Start time (ISO 8601)

end
string<date-time>

End time (ISO 8601, defaults to now)

hours
integer
default:24

Hours of history (used if start not provided)

Required range: x >= 1

Response

Zone history data

zoneId
string
start
string<date-time>
end
string<date-time>
points
object[]
count
integer
warning
string

Present if history service is unavailable