---
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`

## Request

- The document declares no server URL.
- Auth: none declared

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

## Changes

- **2024-04-03** `93ae2b3f2efd`: 1 breaking, 1 warning
  - the request property `name` became required
  - the `priority` request property's min was set to `1.00`
- **2024-02-08** `00512a1ecb66`: 1 info
  - added the optional property `status` to the response with the `201` status

[Operation history](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/changes/api/work_pools/:work_pool_name/queues/post.md)

---

[API](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api.md) - [All operations](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prefecthq/apis/prefect-unreleased-api/revisions/29ba6c4f8837?raw)
