Pass parameters to Airflow Experimental REST api when creating dag run

后端 未结 2 797
不思量自难忘°
不思量自难忘° 2020-12-31 10:02

Looks like Airflow has an experimental REST api that allow users to create dag runs with https POST request. This is awesome.

Is there a way to pass parameters via

2条回答
  •  伪装坚强ぢ
    2020-12-31 10:09

    I had the same issue. "conf" value must be in string

    curl -X POST \
        http://localhost:8080/api/experimental/dags//dag_runs \
        -H 'Cache-Control: no-cache' \
        -H 'Content-Type: application/json' \
        -d '{"conf":"{\"key\":\"value\"}"}'
    

提交回复
热议问题