# Upsert current queue

> Creates or updates the config of the queue assigned to the authenticated user. Send user id or email to act on a teammate's queue instead — user id wins when…

`PATCH /v2/api/dialing-queues/current`

## Targeting a teammate's queue

By default, this updates the config of the queue assigned to the API key owner. To update a teammate's queue, send `user_id` or `email` in the **JSON body**. The teammate must belong to the same team as the API key owner.

- `user_id` — wins when both are provided. Resolve teammate ids via [`GET /v2/api/users`](/docs/users/list-users).
- `email` — used only when `user_id` is absent.

If the resolved user isn't on your team, the response is `404 ASSIGNEE_NOT_FOUND`.
