https://prefect.io logo
Title
i

Iuliia Volkova

08/04/2022, 10:20 AM
Hello everyone! Question about Prefect 2.0. We started working on versions early 2.0b8 and in this version was possibility to submit Flow code with REST API with
flow_data
key, so we deployed flows this way and in our case it was very useful. We need to deploy flow with REST API without using Prefect cli or prefect as a python package. Prefect runs on a totally separate server. Now in 2.0.2 I cannot find how to do this. I read about blocks but I cannot find that block used as default in Prefect to store flow data. So can anyone explain how implement same flow as with
flow_data
in version 2.0b8 and early? How can I just submit Flow code with rest api to deploy it on Server? Thanks in Advance!
a

Anna Geller

08/04/2022, 11:11 AM
flow_data is 💀
How can I just submit Flow code with rest api to deploy it on Server?
The easiest is to create a deployment. If you don't want to use the CLI
prefect deployment build + apply
, you can use
client.create_deployment
i

Iuliia Volkova

08/04/2022, 12:13 PM
thanks!
🙌 1