# detachEmployeeFromContacts

Take an AI employee off contacts (at most 200 ids per call). It stops answering and working them and their schedules are dropped; the history stays. `changedCount` is how many it was taken off. When `interruptedContactId` is set the batch stopped there (`interruptedReason` says why): the contacts before it are done, so send that one and the rest again. Confirm with the person first.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "detachEmployeeFromContacts", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `employeeId`: `ID!` (required)
- `contactIds`: `[ID!]!` (required)

## Response (data, an example)

```json
{
  "aiEmployeesMutation": {
    "detachAiEmployeeFromContacts": {
      "requestedCount": 0,
      "changedCount": 0,
      "interruptedContactId": "<ID>",
      "interruptedReason": "…"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "detachEmployeeFromContacts",
    "variables": {
      "employeeId": "<employeeId>",
      "contactIds": [
        "<contactIds>"
      ]
    }
  }'
```
