Deployments
Get Scheduled Flow Runs For Deployments
Get scheduled runs for a set of deployments. Used by a runner to poll for work.
post/api/deployments/get_scheduled_flow_runs
Headers
x-prefect-api-versionstring
Request body
Response
Successful Response
Example response
[
{
"name": "my-flow-run",
"deployment_version": "1.0",
"flow_version": "1.0",
"context": {
"my_var": "my_val"
},
"tags": [
"tag-1",
"tag-2"
],
"work_pool_name": "my-work-pool",
"state": {
"message": "Run started"
}
}
]Changes
Changed in 4 of the 50 revisions of this API.4
- ○
added the optional property
items/empirical_policy/retry_typeto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
items/deployment_versionto the response with the200statusresponse-optional-property-added
- ○
- ○
the response property
items/flow_idbecame required for the status200response-property-became-required
- ○
- ○
added the optional property
items/job_variablesto the response with the200statusresponse-optional-property-added
- ○