SmartGare
API referenceEndpoints

Broadcast a message on passenger panels

Has passenger information put the message on the chosen panels for the period, under the approvals its priority needs. 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.panel-broadcast:issue`

POST/supervision/v1/console-commands/panel-broadcasts

Has passenger information put the message on the chosen panels for the period, under the approvals its priority needs. 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.panel-broadcast: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/panel-broadcasts" \  -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"  }}