> For the complete documentation index, see [llms.txt](https://docs.imperialcad.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.imperialcad.app/api-and-integrations/api-integrations/emergency-endpoints/attach-unit-to-call.md).

# Attach Unit To Call

This endpoint allows you to attach a unit to an active call.

{% hint style="warning" %}
This endpoint requires **any** ImperialCAD subscription.
{% endhint %}

### AttachCall(data, callback)

<mark style="color:green;">`POST`</mark> `https://imperialcad.app/api/1.1/wf/attachcall`

***

#### Request Body

| Name              | Type   | Description            |
| ----------------- | ------ | ---------------------- |
| `users_discordID` | string | The discord ID of user |
| `callnum`         | number | Number of Call         |

***

#### Example

```lua
exports["ImperialCAD"]:AttachCall({
    users_discordID = "123456789012345678",
    callnum = 204
}, function(success, res)
  print(success and "Unit attached." or ("Failed: " .. res))
end)
```
