SmartGare
API referenceEndpoints

Settle an autocar the station could not identify

Has the coach cycle settle the doubt, with the operator's grounds. 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.unknown-coach:resolve`

POST/supervision/v1/console-commands/unknown-coach-resolutions

Has the coach cycle settle the doubt, with the operator's grounds. 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.unknown-coach:resolve

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/unknown-coach-resolutions" \  -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"  }}