Skip to main content

Get state timelines (group)

GET 

/:customer_id/groups/:group_id/users/:uid/state-timelines

Get state timelines for a user in a group

Request

Path Parameters

    customer_id Customer Idrequired

    Id of the tenant

    group_id Group Idrequired

    Id of the group

    uid uuidrequired

    Id of the user

Query Parameters

    from date-timerequired

    Start date

    to date-timerequired

    End date

    device_id uuid

    Device ID

    metric StateMetricsEnum[]required

    Possible values: [sleep, wear, charging]

    List of state metrics

Responses

Schema
    state_timelines object[]

    List of state timelines

  • Array [
  • metric object
    device_id uuidrequired

    Device ID

    periods object[]

    List of state periods

  • Array [
  • value Valuerequired

    Possible values: [on, off, unknown]

    State value

    from date-timerequired

    Local time at which the state started

    to date-timerequired

    Local time at which the state ended

  • ]
  • ]
Loading...