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

Jamie Blakeman

08/18/2022, 11:07 AM
apologies if this is a silly question, but I’ve been going around and around for an hour now How can we trigger a flow run from the REST API (Prefect REST API - Prefect 2.0) using a POST
/api/flow_runs/
request from an external source? This was something we’d do regularly with the GraphQL api in Prefect 1.0
1
j

Jamie Blakeman

08/18/2022, 11:39 AM
Thanks for this We’re running our agents on a VM without a public IP address for security reasons Previously on 1.0, we could pass a payload and API key to https://api.prefect.io where the job would go to pending, our private agents could then pick up the job and execute What base url should we be using for Prefect Cloud?
a

Anna Geller

08/18/2022, 11:59 AM
my apologies, let me update the example to show how to do that for Prefect Cloud 2.0 - excellent point!
will let you know - looks like it's more complicated than just changing the URL - will update here
j

Jamie Blakeman

08/18/2022, 12:53 PM
Thanks so much! Working as expected now
🙌 1
🙏 1
3 Views