# Detach Unit

## EVENT\_DISPATCH\_UNIT\_DETACH Post

{% hint style="warning" %}
This push event is not sent triggered via the API.\
API triggers should be listened to locally on the game server
{% endhint %}

```javascript
{
  "key": "YOUR_API_KEY", // Authenticate legitimate event traffic
  "type": "EVENT_DISPATCH_UNIT_DETACH",
  "data": {
    "eventOriginIdent": 123, // Identifier that created/caused this event
    "ident": 1,              // (Option 1) Single Identifier/Unit ID
    "idents": [123, 456],    // (Option 2) Multiple Identifiers/Unit IDs
    "callId": 123        // Dispatch Call ID
  }
}
```

The `ident` is a unique number specifying the a unit "identifier" being detached from a call.

The `callId` represents the specific dispatch call they are being removed from.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonoransoftware.com/cad/api-integration/push-events/dispatch-events/detach-unit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
