SmartGare
API referenceEndpoints

Broadcast a message to a chosen set of display points

The station operator creates the message, here or from the supervision console; a louder priority also needs its approval right. The same request schedules it: a start already passed puts it up at once, a start to come keeps it SCHEDULED, and the module itself puts it up at its start and takes it down at its end — no one schedules it separately. Accepted is not delivered: the answer says how many of the chosen points it reached now (published_to_points of chosen_points), whether that is ALL, SOME or NONE of them (reach), and which it did not reach (unreached_display_point_ids) — a point retired since, or one carrying no profile yet. A message waiting for its start has reached none yet and states no reach. **Required permission:** `siv.operator-message:broadcast`

POST/siv/v1/operator-messages

The station operator creates the message, here or from the supervision console; a louder priority also needs its approval right. The same request schedules it: a start already passed puts it up at once, a start to come keeps it SCHEDULED, and the module itself puts it up at its start and takes it down at its end — no one schedules it separately. Accepted is not delivered: the answer says how many of the chosen points it reached now (published_to_points of chosen_points), whether that is ALL, SOME or NONE of them (reach), and which it did not reach (unreached_display_point_ids) — a point retired since, or one carrying no profile yet. A message waiting for its start has reached none yet and states no reach.

Required permission: siv.operator-message:broadcast

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*BroadcastOperatorMessageRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/siv/v1/operator-messages" \  -H "Content-Type: application/json" \  -d '{    "ends_at": "2019-08-24T14:15:22Z",    "priority": "NORMAL",    "starts_at": "2019-08-24T14:15:22Z",    "target_display_point_ids": [      "string"    ],    "text": "string"  }'
{  "chosen_points": 0,  "ends_at": "2019-08-24T14:15:22Z",  "id": "string",  "published_to_points": 0,  "reach": "ALL",  "starts_at": "2019-08-24T14:15:22Z",  "status": "string",  "unreached_display_point_ids": [    "string"  ]}