Join us at inaugural PyAI Conf in San Francisco on March 10th! Learn more
cURL
curl --request POST \ --url https://api.example.com/v2/concurrency_limits/increment-with-lease \ --header 'Content-Type: application/json' \ --data ' { "slots": 123, "names": [ "<string>" ], "mode": "concurrency", "lease_duration": 300, "holder": { "type": "flow_run", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } } '
{ "lease_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "limits": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "limit": 123 } ] }
concurrency
rate_limit
The duration of the lease in seconds.
60 <= x <= 86400
The holder of the lease with type (flow_run, task_run, or deployment) and id.
Show child attributes
Successful Response
Was this page helpful?