SmartGare
API referenceEndpoints

Let in, in an emergency, a coach the entrance refused

Has the coach cycle let in the coach of the refused presentation named as the target: its visit opens and the entrance's barrier is ordered open, the override kept for good and alerted. Sent from the entry-refused alert, it closes that alert. The command is recorded with the operator, the reason and the owning module's answer: DONE with the record it made, or REFUSED with its code unchanged. The same command id sent again acts once; a command naming an alert closes it once done. **Required permission:** `supervision.emergency-entry:issue`

POST/supervision/v1/console-commands/emergency-entries

Has the coach cycle let in the coach of the refused presentation named as the target: its visit opens and the entrance's barrier is ordered open, the override kept for good and alerted. Sent from the entry-refused alert, it closes that alert. The command is recorded with the operator, the reason and the owning module's answer: DONE with the record it made, or REFUSED with its code unchanged. The same command id sent again acts once; a command naming an alert closes it once done.

Required permission: supervision.emergency-entry:issue

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ConsoleCommandRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/supervision/v1/console-commands/emergency-entries" \  -H "Content-Type: application/json" \  -d '{    "command_id": "string",    "reason": "string"  }'
{  "code": "string",  "code_expires_at": "2019-08-24T14:15:22Z",  "command": {    "alert_id": "string",    "answered_at": "2019-08-24T14:15:22Z",    "command_id": "string",    "details": {      "access_point_id": "string",      "by": "string",      "display_point_ids": [        "string"      ],      "ends_at": "2019-08-24T14:15:22Z",      "priority": "string",      "purpose": "string",      "starts_at": "2019-08-24T14:15:22Z",      "text": "string"    },    "kind": "FORCE_EXIT",    "permission": "string",    "reason": "string",    "refusal_code": "string",    "requested_at": "2019-08-24T14:15:22Z",    "requested_by": "string",    "result_id": "string",    "status": "SENT",    "target_id": "string"  }}