# clearIntakeAssignment

Delete an owner's intake assignment for good (its people, teams, employees, workflows and rotation place); a line then falls back to the org default, and an ORG clear deletes that default, so a line with none of its own assigns nobody. owner is { kind, id }: ORG (the org id, the default), LINE (a phone line), META_PAGE (a Page id) or WORKFLOW (an EVENT workflow group). A LINE or ORG owner reads true whether or not one existed; a META_PAGE or WORKFLOW owner reads false when there was none or it is not the key org's. Admins only.

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

## Variables

- `owner`: `AssignmentPolicyOwnerInput!` (required)
  - `kind`: `AssignmentPolicyOwnerKind!` (required, one of `AGENT`, `LINE`, `ORG`, `META_PAGE`, `WORKFLOW`)
  - `id`: `ID!` (required)

## Response (data, an example)

```json
{
  "assignmentPolicyMutation": {
    "clear": true
  }
}
```

## 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": "clearIntakeAssignment",
    "variables": {
      "owner": {
        "kind": "AGENT",
        "id": "<id>"
      }
    }
  }'
```
