Hey
@Xavier Babu this is the rest API reference in our docs
https://docs.prefect.io/api-ref/rest-api/#/, I’d also strongly encourage you to update the prefect version there have been a large number of changes to how deployments/infrastructure work in recent versions
This discourse covers the gist of what deployments/infrastructure blocks would look like
https://discourse.prefect.io/t/overview-of-infrastructure-blocks-in-cli-based-deployments/1574
As for generating a process block in code this is a basic example, generally speaking though you can specify all this in a deployment command or from the UI (orion or cloud) for a flow run and call a flow run from that deployment if that's the pattern you're going for:
process_infra = Process(env={"key": "val"}).save(name="test")