SmartGare
API referenceEndpoints

List a coach cycle's stays

Returns when the coach entered and left each area and how long it stayed, with every correction beside the instant it superseded. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycles/{id}/stage-visits

Returns when the coach entered and left each area and how long it stayed, with every correction beside the instant it superseded.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/coach-cycles/string/stage-visits"
{  "data": [    {      "corrections": [        {          "boundary_sequence": 0,          "corrected_at": "2019-08-24T14:15:22Z",          "cycle_id": "string",          "id": "string",          "previous_at": "2019-08-24T14:15:22Z",          "reason": "string",          "recorded_at": "2019-08-24T14:15:22Z",          "recorded_by": "string"        }      ],      "duration": "string",      "entered_at": "2019-08-24T14:15:22Z",      "left_at": "2019-08-24T14:15:22Z",      "stage": "ENTRY",      "timing": {        "limit": "string",        "limit_at": "2019-08-24T14:15:22Z",        "limit_state": "RESOLVED",        "overstay": "string",        "planned_end": {          "at": "2019-08-24T14:15:22Z",          "basis": "ARRIVAL",          "departure_id": "string"        },        "status": "WITHIN_LIMIT",        "vehicle_type": "string"      }    }  ]}