Skip to content

Latest commit

 

History

History
61 lines (51 loc) · 1.71 KB

File metadata and controls

61 lines (51 loc) · 1.71 KB
description
This endpoint allows you to detach a unit from any active dispatch call.

Detach Unit

{% hint style="warning" %} This API endpoint requires the plus version of Sonoran CAD or higher. For more information, see our pricing page. {% endhint %}

{% swagger baseUrl="https://api.sonorancad.com" path="/emergency/detach_unit" method="post" summary="Detach Unit" %} {% swagger-description %} This endpoint allows you to attach new units to an existing dispatch call. {% endswagger-description %}

{% swagger-parameter in="body" name="id" type="string" %} Your community's ID {% endswagger-parameter %}

{% swagger-parameter in="body" name="key" type="string" %} Your community's API Key {% endswagger-parameter %}

{% swagger-parameter in="body" name="type" type="string" %} DETACH_UNIT {% endswagger-parameter %}

{% swagger-parameter in="body" name="data" type="array" %} Array of request objects {% endswagger-parameter %}

{% swagger-response status="200" description="A successful call will be met with the following response:" %}

UNITS DETACHED

{% endswagger-response %}

{% swagger-response status="400" description="The following 400 errors may be sent in response:" %}

INVALID REQUEST TYPE
INVALID COMMUNITY ID
API IS NOT ENABLED FOR THIS COMMUNITY
INVALID API KEY

{% endswagger-response %} {% endswagger %}

{
    "id": "YOUR_COMMUNITY_ID",
    "key": "YOUR_API_KEY",
    "type": "DETACH_UNIT",
    "data": [
        {
            "serverId": 1, // Default 1 - See guide on setting up multiple servers
            "units": ["STEAN:1234"] // Array of API IDs
                                // Typically, this is their STEAM Hex
        },
    ]
}