<@ULVA73B9P> How to get flow default parameters us...
# ask-marvin
n
@Marvin How to get flow default parameters using the REST API?
Copy code
async with get_client() as client:
        flow = asyncio.run(client.read_flow_by_name(name=flow_name))
m
It seems the documentation does not directly answer the question about using the REST API to retrieve default parameters for a flow. However, the information given suggests that default parameter values are usually configured in the
deployment.yaml
for a deployment and would be used for flow runs based on that deployment. These parameters are not directly tied to the flow object itself when retrieved via the REST API. To access default parameters for a flow, you would typically do so by looking at the deployment configuration rather than the flow object. Since the documentation does not provide an REST API endpoint for this, you may need to consider other approaches, such as using Prefect's Python client or CLI tools, to interact with deployment configurations. For additional information, you can refer to the documentation about deployments and default parameters and the tutorial on flows. If you require more specific guidance on retrieving parameters via the REST API, you might consider checking GitHub issues for similar queries or raising a new issue if necessary. Would you like me to search GitHub issues for related discussions?