Issue a temporary access code to a stuck driver
Has the coach cycle issue a code for the checkpoint the driver is stuck at; the code is in this answer once and never kept. 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.access-code:issue`
/supervision/v1/console-commands/access-codesHas the coach cycle issue a code for the checkpoint the driver is stuck at; the code is in this answer once and never kept. 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.access-code:issue
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/supervision/v1/console-commands/access-codes" \ -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" }}Revoke a temporary access code
Has the coach cycle revoke it. 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.access-code:issue`
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`