# stopEmployeeRuns

Stop what one AI employee is doing on one contact right now (getContactEmployees' `isWorkingNow`). The run stops at its next step, with anything it started; it stays on the contact and wakes again the next time something wakes it. A stopped run does not come back. Returns STOP_REQUESTED, or NOTHING_RUNNING when it was idle.

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

## Variables

- `contactId`: `ID!` (required)
- `employeeId`: `ID!` (required)

## Response (data, an example)

```json
{
  "aiEmployeesMutation": {
    "stopAiEmployeeRuns": "STOP_REQUESTED"
  }
}
```

## 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": "stopEmployeeRuns",
    "variables": {
      "contactId": "<contactId>",
      "employeeId": "<employeeId>"
    }
  }'
```
