SmartGare
API referenceEndpoints

Record a movement nothing observed

Writes down a movement that really happened while no control point reported it, at the instant the coach was actually seen and with the reason the operator knows it. The journal is appended, never rearranged; the stage flow is not relaxed; and a correction that records the coach leaving ends the visit. **Required permission:** `cycle.coach-cycle:write`

POST/cycle/v1/coach-cycles/{id}/missed-movements

Writes down a movement that really happened while no control point reported it, at the instant the coach was actually seen and with the reason the operator knows it. The journal is appended, never rearranged; the stage flow is not relaxed; and a correction that records the coach leaving ends the visit.

Required permission: cycle.coach-cycle:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RecordMissedMovementRequest

Response Body

*/*

*/*

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