Hey there! I’m trying to figure out the easiest wa...
# prefect-community
c
Hey there! I’m trying to figure out the easiest way to trigger a prefect cloud (1.0) job via the API - I know I can use the GraphQL API but I don’t have a ton of experience with GraphQL and I want to trigger a flow run based on knowing the flow name — not the id. I also need to trigger a flow on the latest version of the flow — and there will be several versions. This all needs to take place within the context of an automated build process (GCP cloud build) so I don’t want to have to install the cli or anything - I just want to drop in an API key via a secret and run a simple script to trigger the flow at the end of a build. Ideally it would be just a bash/curl script but I could also write a basic python script to do it.
k
There is a sample here
🙌 1