SmartGare
API referenceEndpoints

Record an identification reading

Files the reading and puts it with the others read of the same coach at the same point. It allows nothing and opens no barrier. At a regulation exit alone, a presentation that identifies one coach moves that coach to its boarding area, and the answer says what it did to the visit. **Required permission:** `cycle.coach-cycle:write`

POST/cycle/v1/identification-observations

Files the reading and puts it with the others read of the same coach at the same point. It allows nothing and opens no barrier. At a regulation exit alone, a presentation that identifies one coach moves that coach to its boarding area, and the answer says what it did to the visit.

Required permission: cycle.coach-cycle:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RecordIdentificationObservationRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/cycle/v1/identification-observations" \  -H "Content-Type: application/json" \  -d '{    "access_point_id": "string",    "device_at": "2019-08-24T14:15:22Z",    "direction": "INBOUND",    "identifier_type": "PLATE",    "lane_id": "string",    "purpose": "STATION_ENTRY",    "raw_text": "string",    "reading_id": "string",    "source": "string"  }'
{  "access_attempt_id": "string",  "clock_offset": "string",  "clock_reliability": "WITHIN_TOLERANCE",  "confidence": 0,  "device_at": "2019-08-24T14:15:22Z",  "duplicate": true,  "id": "string",  "matched_cycle_id": "string",  "raw_text": "string",  "reading_id": "string",  "received_at": "2019-08-24T14:15:22Z",  "recorded_by": "string",  "regulation_exit_outcome": "CYCLE_ADVANCED",  "resolution_assessment": "RESOLVED",  "resolved_vehicle_id": "string",  "source": "string"}