Thread
#prefect-community
    Chris Goddard

    Chris Goddard

    3 months ago
    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.
    Kevin Kho

    Kevin Kho

    3 months ago
    There is a sample here