

# UpdateContactTargetQueue
UpdateContactTargetQueue

Sets the contact's TargetQueue. This is the queue is used by all other instructions that check a queue implicitly, and for TransferContactToQueue. 

## Parameter object


```
{
  "QueueId": [Optional] A queue ID or queue ARN. If AgentId is specified, this may not be specified. This must be either defined fully statically or as a single valid JSONPath identifier.
  "AgentId": [Optional] An agent ID or agent ARN, representing an agent queue. If QueueId is specified, this may not be specified. This must be either defined fully statically or as a single valid JSONPath identifier.
}
```

## Results and conditions


None.

## Errors

+ NoMatchingError - if no other Error matches.

## Restrictions


This action is supported only in inbound contact flows and transfer flows. It is not supported in whisper flows, hold flows, or customer queue flows. 

## Corresponding block in the UI


[Set working queue](https://docs.aws.amazon.com/connect/latest/adminguide/set-working-queue.html) 