# setOrganizationLeadRouting

Who gets the new leads a property-signal skip trace creates: active members' user ids (listTeammates). One person gets every lead, two or more split them evenly, an empty list sends them to nobody. Replaces what was set; setup no longer changes it after this. Organization admins only.

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

## Variables

- `assigneeUserIds`: `[ID!]!` (required)

## Response (data, an example)

```json
{
  "organizationMutation": {
    "setOrganizationLeadRouting": {
      "id": "<ID>",
      "leadRouting": {
        "assigneeUserIds": [
          "<ID>"
        ]
      }
    }
  }
}
```

## 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": "setOrganizationLeadRouting",
    "variables": {
      "assigneeUserIds": [
        "<assigneeUserIds>"
      ]
    }
  }'
```
