For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set Stations

Replace station alert configuration for a server.

PUT https://api.sonorancad.com/v2/emergency/servers/{serverId}/stations

Rate limit: 2 requests per minute Authenticated v2 endpoints are rate limited per API key rather than per IP address.

Replace the station alert configuration for a server.

Send the station alert payload as a top-level JSON object. Provide locations, tones, and unitColors directly in the request body.

Path Parameters

Name
Type
Description

serverId

integer

Configured Sonoran CAD server ID.

Request Body

{
  "locations": [
    {
      "name": "Mission Row",
      "coordinates": {
        "x": 425.1,
        "y": -979.2,
        "z": 30.7,
        "w": 0.0
      },
      "doors": ["bay_1", "bay_2"],
      "icon": "fas fa-building"
    }
  ],
  "tones": ["tone_station_open.mp3"],
  "unitColors": ["#2563eb", "#ef4444"]
}

Example Request

Response

Successful requests return application/json.

Last updated

Was this helpful?