Set Stations

This endpoint sets your community's available fire stations.

Set Stations

POST https://api.sonorancad.com/emergency/SET_STATIONS

Request Body

Name
Type
Description

id

string

Your community's ID

key

string

Your community's API Key

type

string

SET_STATIONS

data

array

Array of request objects

Updated station config!
{
    "id": "YOUR_COMMUNITY_ID",
    "key": "YOUR_API_KEY",
    "type": "SET_STATIONS",
    "data": {
        "serverId": 1,
        "config": {
            "locations": [
                {
                    "name": "Fire Station One",
                    "coordinates": {
                        "x": 1234,
                        "y": 5678
                    },
                    "doors": [
                        "Bay One",
                        "Engine Two"
                    ],
                }
            ],
            "tones": [
                "Tone Name One",
                "Tone Name Two"
            ]
        }
    }
}

Last updated

Was this helpful?