Hi, I'm new to prefect and I was wondering if it'...
# prefect-server
b
Hi, I'm new to prefect and I was wondering if it's possible to trigger a flow through the graphql endpoint. I am currently self-hosting a prefect server and would like to trigger a flow from a separate system running off a UI. Would appreciate any insights or materials that can lead me to a solution. I've successfully installed prefect and able to execute some flows (via linux terminal) including scheduled flows but what I'm looking for is the ability to trigger a flow externally via the graphql api. Sorry for the beginner question 🙂
k
Welcome to Prefect! You can use the Prefect client
Copy code
from prefect.client.client import CLient
client = Client()
client.create_flow_run(flow_id)
You can also hit the GraphQL API with a request.
b
Thank you very much!