`PATCH /api/resources/{id}/concurrency` -- set `resources.max_concurrent_uses`.
PATCH
/api/resources/{id}/concurrency
const url = 'https://example.com/api/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/concurrency';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"limit":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/resources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/concurrency \ --header 'Content-Type: application/json' \ --data '{ "limit": 1 }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”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}Responses
Section titled “Responses”Media typeapplication/json
Response: { "limit": <int|null> } – the cap just stored.
object
limit
integer | null format: int32
Examplegenerated
{ "limit": 1}