SmartGare
API referenceEndpoints

Read a station day's report, as it was produced

**Required permission:** `supervision.shift:read`

GET/supervision/v1/daily-reports/{day}

Required permission: supervision.shift:read

AuthorizationBearer <token>

In: header

Path Parameters

day*string
Formatdate

Response Body

*/*

curl -X GET "https://example.com/supervision/v1/daily-reports/2019-08-24"
{  "day": "2019-08-24",  "figures": {    "alerts_closed": {      "property1": 0,      "property2": 0    },    "alerts_escalated": 0,    "alerts_open_at_close": 0,    "alerts_raised": {      "property1": 0,      "property2": 0    },    "average_seconds_to_acknowledge": 0,    "average_seconds_to_close": 0,    "coaches_on_site_at_close": [      {        "overrun_minutes": 0,        "plate_number": "string",        "stage": "string",        "stage_entered_at": "2019-08-24T14:15:22Z",        "stage_for_seconds": 0,        "vehicle_cycle_id": "string",        "vehicle_id": "string"      }    ],    "degraded_places_at_close": [      {        "missing": [          {            "code": "string",            "details": {              "property1": "string",              "property2": "string"            }          }        ],        "place": {          "code": "string",          "details": {            "property1": "string",            "property2": "string"          }        }      }    ],    "degraded_places_read_at": "2019-08-24T14:15:22Z",    "devices_down": 0,    "emergency_entries": [      {        "access_attempt_id": "string",        "access_point_id": "string",        "emergency_entry_id": "string",        "granted_at": "2019-08-24T14:15:22Z",        "granted_by": "string",        "lane_id": "string",        "overridden_refusal": "string",        "plate_number": "string",        "reason": "string",        "refused_at": "2019-08-24T14:15:22Z",        "vehicle_cycle_id": "string",        "vehicle_id": "string"      }    ],    "handovers": 0,    "handovers_not_taken_over": 0,    "longest_seconds_to_acknowledge": 0,    "longest_seconds_to_close": 0,    "median_seconds_to_acknowledge": 0,    "median_seconds_to_close": 0,    "overrides": [      {        "command_id": "string",        "done_at": "2019-08-24T14:15:22Z",        "kind": "string",        "reason": "string",        "requested_by": "string",        "result_id": "string",        "target_id": "string"      }    ],    "overstays": 0,    "unsettled_clashes_at_close": [      {        "bay_id": "string",        "ends_at": "2019-08-24T14:15:22Z",        "first_departure_id": "string",        "id": "string",        "second_departure_id": "string",        "starts_at": "2019-08-24T14:15:22Z",        "type": "string"      }    ]  },  "from": "2019-08-24T14:15:22Z",  "produced_at": "2019-08-24T14:15:22Z",  "produced_by": "string",  "to": "2019-08-24T14:15:22Z"}