# Reassign

> Moves a lead that already has a rep to a queue's next rep or to a named rep.

| | |
|---|---|
| Type | `reassign` |
| Group | Routing |

## Exits

| Exit | Name |
|---|---|
| `next` | Next |

## Settings

| Key | Label | Takes | Default | Notes |
|---|---|---|---|---|
| `to` | Give the lead to | `queue` The next rep of a queue, `person` A named rep | `queue` | A meeting already booked stays with the rep who hosts it. |
| `queueId` | Queue | A string: a queue's id, from list_queues. |  | Only when it goes to a queue. |
| `repId` | Named rep | A string: a rep's id, from list_reps. |  | Only when it goes to a named rep. |

## Fields it adds

| Field | What |
|---|---|
| `flow.rep_name` | Rep's name |
| `flow.rep_owner` | Rep's HubSpot owner ID |

## In a flow document

```json
{
  "id": "reassign1",
  "type": "reassign",
  "settings": {
    "to": "queue"
  }
}
```
