SmartGare
API referenceEndpoints

Open a coach cycle

Records a coach entering the station, at the entry stage. **Required permission:** `cycle.coach-cycle:write`

POST/cycle/v1/coach-cycles

Records a coach entering the station, at the entry stage.

Required permission: cycle.coach-cycle:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*OpenVehicleCycleRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/cycle/v1/coach-cycles" \  -H "Content-Type: application/json" \  -d '{    "access_point_id": "string",    "occurred_at": "2019-08-24T14:15:22Z",    "vehicle_id": "string"  }'
{  "access_point_id": "string",  "current_stage": "ENTRY",  "id": "string",  "status": "OPEN",  "transitioned_at": "2019-08-24T14:15:22Z",  "vehicle_id": "string"}