SmartGare
API referenceEndpoints

Let in a coach the entrance refused, in an emergency

Opens the coach's visit, or completes the one its plate alone opened at this entrance, and orders the entrance's barrier open once it is recorded. The emergency entry is kept for good with who, when, why and the refusal it overrode, and announced so an operator is alerted. The presentation keeps its refusal. **Required permission:** `cycle.emergency-entry:grant`

POST/cycle/v1/access-attempts/{id}/emergency-entry

Opens the coach's visit, or completes the one its plate alone opened at this entrance, and orders the entrance's barrier open once it is recorded. The emergency entry is kept for good with who, when, why and the refusal it overrode, and announced so an operator is alerted. The presentation keeps its refusal.

Required permission: cycle.emergency-entry:grant

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*GrantEmergencyEntryRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/cycle/v1/access-attempts/string/emergency-entry" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "access_attempt_id": "string",  "access_point_id": "string",  "barrier_order_id": "string",  "granted_at": "2019-08-24T14:15:22Z",  "granted_by": "string",  "id": "string",  "lane_id": "string",  "overridden_refusal": "STATION_CLOSED",  "permission": "string",  "reason": "string",  "refused_at": "2019-08-24T14:15:22Z",  "vehicle_cycle_id": "string",  "vehicle_id": "string"}