Flow Runs
Create Flow Run
Create a flow run. If a flow run with the same flow_id and idempotency key already exists, the existing flow run will be returned.
If no state is provided, the flow run will be created in a PENDING state.
post/api/flow_runs/
Headers
x-prefect-api-versionstring
Request body
Example request
{
"name": "my-flow-run",
"tags": [
"tag-1",
"tag-2"
]
}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"
}
}