Skip to content
Select themeSelect language

`PATCH /api/projects/{id}/concurrency` -- set `projects.max_concurrent_runs`.

PATCH
/api/projects/{id}/concurrency
curl --request PATCH \
--url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/concurrency \
--header 'Content-Type: application/json' \
--data '{ "limit": 1 }'
id
required
string format: uuid
Media typeapplication/json

Body of every concurrency PATCH: { "limit": <int|null> }. None (= null on the wire) clears the cap.

object
limit

Some(n) sets the cap to n in-flight runs; None clears it. The service rejects Some(<= 0) because 0 would deadlock the axis.

integer | null format: int32
Examplegenerated
{
"limit": 1
}
Media typeapplication/json

Response: { "limit": <int|null> } – the cap just stored.

object
limit
integer | null format: int32
Examplegenerated
{
"limit": 1
}