Pass parameters to deployment via API?

Can you pass deployment parameters to the create flow run API when you transition it to scheduled?

As an example, the below will run a deployment with default parameters. Can I send parameters as part of the API call?

import requests

url = 'http://<IP>:4200/api/deployments/<deployment_id>create_flow_run'
myobj = {"name":"curl","state":{"type":"SCHEDULED"}}

x =, json = myobj)

Yes, absolutely. Here is an end-to-end example (I just extended it to make it easier for you):

Awesome, Thank you!

1 Like