SmartGare
API referenceEndpoints

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`

POST/supervision/v1/console-commands/access-codes

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

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/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"  }}