Get insights about user status counts
GET
CoderSessionTokenheader
Coder-Session-Token<token>timezone?stringIANA timezone name (e.g. America/St_Johns)
tz_offset?integerDeprecated: Time-zone offset (e.g. -2). Use timezone instead.
OK
application/json- response
status_counts?The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X GET \ "$CODER_URL/api/v2/insights/user-status-counts" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "status_counts": { "property1": [ { "count": 10, "date": "2019-08-24T14:15:22Z" } ], "property2": [ { "count": 10, "date": "2019-08-24T14:15:22Z" } ] }}