Skip to main content
POST
Bulk Increment Active Slots With Lease

Headers

x-prefect-api-version
string

Body

application/json
slots
integer
required
names
string[]
required
mode
enum<string>
default:concurrency
Available options:
concurrency,
rate_limit
lease_duration
number
default:300

The duration of the lease in seconds.

Required range: 60 <= x <= 86400
holder
ConcurrencyLeaseHolder · object | null

The holder of the lease with type (flow_run, task_run, or deployment) and id.

Response

Successful Response

lease_id
string<uuid>
required
limits
MinimalConcurrencyLimitResponse · object[]
required