Deployments
Create Flow Run From Deployment
Create a flow run from a deployment.
Any parameters not provided will be inferred from the deployment's parameters. If tags are not provided, the deployment's tags will be used.
If no state is provided, the flow run will be created in a SCHEDULED state.
post/api/deployments/{id}/create_flow_run
Request
- The document declares no server URL.
- Authnone declared
Path parameters
idstring uuid required
The deployment id
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"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.