Skip to main content
PATCH
/
api
/
v2
/
concurrency_limits
/
{id_or_name}
Update Concurrency Limit V2
curl --request PATCH \
  --url https://api.example.com/api/v2/concurrency_limits/{id_or_name} \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": true,
  "name": "<string>",
  "limit": 1,
  "active_slots": 1,
  "denied_slots": 1,
  "slot_decay_per_second": 1
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

x-prefect-api-version
string

Path Parameters

id_or_name
required

The ID or name of the concurrency limit

Body

application/json

Data used by the Prefect REST API to update a v2 concurrency limit.

active
boolean | null
name
string | null
limit
integer | null
Required range: x >= 0
active_slots
integer | null
Required range: x >= 0
denied_slots
integer | null
Required range: x >= 0
slot_decay_per_second
number | null
Required range: x >= 0

Response

Successful Response