Hi all, prefect version 2.20.10 is it possible to...
# ask-community
p
Hi all, prefect version 2.20.10 is it possible to override the PREFECT_API_URL from a flow run? Google and other sources suggests that this should work but while testing this it does not seem to work.
Copy code
from prefect import flow, get_client

@flow
async def my_flow():
    client = get_client()
    client.api_url = "<http://target-prefect-server:4200/api>"
    print(f"API URL set to: {client.api_url}")
    # You can now make client calls or run your flow tasks