<@ULVA73B9P> can i set the flow run id programtica...
# marvin-in-the-wild
a
@Marvin can i set the flow run id programtically via api call? I want to set UUIDs ahead of time
m
Setting flow run IDs (UUIDs) programmatically via an API call is not explicitly documented in Prefect's official documentation. However, the documentation does mention the ability to programmatically set the name of a flow run using a function, but it does not specify setting a custom UUID. To achieve this, you may need to interact with the Prefect API client directly. There is an `await client.create_flow_run_from_deployment()` function that gets mentioned, which suggests that you could create flow runs programmatically. I recommend exploring the client's capabilities to see if setting a specific UUID is supported during the creation of a flow run. Please keep in mind that the flow run ID should be a unique identifier, so if you are providing these UUIDs, ensure they are unique and will not clash with Prefect's own ID generation system. For more details and examples on using the Prefect client and setting the flow run name, please refer to the Using the Client guide and Concepts: Flows documentation.