Skip to content

how can I dynamically create and run a deployment remotely through SDK or API? #16716

Answered by zzstoatzz
3030373635 asked this question in General
Discussion options

You must be logged in to vote

hi @3030373635 - if you have a server that you're hosting and you've created a deployment against, you can have a client trigger a run of that deployment by

  • setting PREFECT_API_URL on the client to point to your server ie http://{your-domain}/api
  • on the client, using run_deployment to trigger a run (or otherwise hitting POST /create_flow_run_from_deployment)

see the docs on this

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zzstoatzz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This issue is asking for clarification
2 participants
Converted from issue

This discussion was converted from issue #16702 on January 14, 2025 15:54.