---
title: "Create Work Queue"
method: POST
path: "/api/work_pools/{work_pool_name}/queues"
tags: ["Work Pools"]
---

# Create Work Queue

`POST /api/work_pools/{work_pool_name}/queues`

Creates a new work pool queue. If a work pool queue with the same
name already exists, an error will be raised.

## Path parameters

- `work_pool_name` string, required — The work pool name

## Headers

- `x-prefect-api-version` string

## Request body

- WorkQueueCreate — Data used by the Prefect REST API to create a work queue.
  - `name` string, required — The name of the work queue.
  - `description` string — An optional description for the work queue.
  - `is_paused` boolean — Whether or not the work queue is paused.
  - `concurrency_limit` integer — The work queue's concurrency limit.
  - `priority` integer — The queue's priority. Lower values are higher priority (1 is the highest).
  - `filter` QueueFilter — Filter criteria definition for a work queue.
    - `tags` string[] — Only include flow runs with these tags in the work queue.
    - `deployment_ids` string[] — Only include flow runs from these deployments in the work queue.

## Response `201`

Successful Response

- WorkQueueResponse — An ORM representation of a work queue
  - `id` string, uuid
  - `created` string, date-time
  - `updated` string, date-time
  - `name` string, required — The name of the work queue.
  - `description` string — An optional description for the work queue.
  - `is_paused` boolean — Whether or not the work queue is paused.
  - `concurrency_limit` integer — An optional concurrency limit for the work queue.
  - `priority` integer — The queue's priority. Lower values are higher priority (1 is the highest).
  - `work_pool_id` string, uuid — The work pool with which the queue is associated.
  - `filter` QueueFilter — Filter criteria definition for a work queue.
    - `tags` string[] — Only include flow runs with these tags in the work queue.
    - `deployment_ids` string[] — Only include flow runs from these deployments in the work queue.
  - `last_polled` string, date-time — The last time an agent polled this queue for work.
  - `work_pool_name` string — The name of the work pool the work pool resides within.
  - `status` 'READY' | 'NOT_READY' | 'PAUSED' — Enumeration of work queue statuses.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/prefecthq/apis/untitled-api.md) · [All operations](https://skmtc.dev/prefecthq/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/prefecthq/untitled-api/revisions/a7958ce57e96/schema)
