POST
/
api
/
work_pools
/
{work_pool_name}
/
workers
/
filter
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created": "2023-11-07T05:31:56Z",
    "updated": "2023-11-07T05:31:56Z",
    "name": "<string>",
    "work_pool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "last_heartbeat_time": "2023-11-07T05:31:56Z",
    "heartbeat_interval_seconds": 123,
    "status": "OFFLINE"
  }
]

Headers

x-prefect-api-version
string

Path Parameters

work_pool_name
string
required

The work pool name

Body

application/json
workers
object | null

Filter by Worker.last_heartbeat_time.

offset
integer
default:
0
Required range: x > 0
limit
integer

Defaults to PREFECT_API_DEFAULT_LIMIT if not provided.

Response

200
application/json
Successful Response
id
string
required
created
string | null
required
updated
string | null
required
name
string
required

The name of the worker.

work_pool_id
string
required

The work pool with which the queue is associated.

last_heartbeat_time
string

The last time the worker process sent a heartbeat.

heartbeat_interval_seconds
integer | null

The number of seconds to expect between heartbeats sent by the worker.

status
enum<string>

Current status of the worker.

Available options:
ONLINE,
OFFLINE