https://prefect.io logo
#prefect-community
Title
# prefect-community
s

Shrikkanth

03/23/2022, 2:16 PM
Hi guys , Is there a Query to execute or run a prefect flow from prefect Interactive API?
k

Kevin Kho

03/23/2022, 2:18 PM
This is for Prefect 1 right?
You can use
Client.create_flow_run
or you can query for it yourself like this
s

Shrikkanth

03/23/2022, 2:40 PM
@Kevin Kho for using in prefect cloud interactive API tab and also for calling it in python. The above gives error below: {"errors":[{"path":["createFlowRun"],"message":"Version group a6606436-21d9-4dcc-aa3d-1d2a4572fb8d has no unarchived flows.","extensions":{"code":"INTERNAL_SERVER_ERROR"}}],"data":{"createFlowRun":null}}
k

Kevin Kho

03/23/2022, 3:33 PM
That sounds like either the id is wrong or you don’t have a current version? Could you show me in the UI where you grab this
3 Views