In the API, what is the difference between "Create...
# prefect-community
s
In the API, what is the difference between "Create a flow run from Deployment" and "Create a flow run"? In the latter you have to specify a Deployment id anyway I see.
1
a
What are you trying to do? If you want to create a flow run from deployment, you need create_flow_run_from_deployment, as shown in this example https://discourse.prefect.io/t/how-to-create-a-flow-run-from-deployment-orchestrator-pattern/803
s
Hi Anna! In the RestAPI, I can start a flow run accordingly: https://orion-docs.prefect.io/api-ref/rest-api/#/Flow%20Runs/create_flow_run_flow_runs__post I can also use this: https://orion-docs.prefect.io/api-ref/rest-api/#/Deployments/create_flow_run_from_deployment_deployments__id__create_flow_run_post What is the difference? Should not all registered flows have a Deployment anyway?
a
sorry for the late response, I think it depends on whether you created a deployment or not? did you solve your issue by now?