pierrejeambrun commented on issue #75:
URL:
https://github.com/apache/airflow-client-python/issues/75#issuecomment-1537156844
I don't think this is a mistake. DagRun Schema has `read_only` dag_id (which
seems normal). The `dag_id` required for triggering a Dag Run is a path
parameter, this is working on my end:
```
# DagRun
dag_run_api_instance = dag_run_api.DAGRunApi(api_client)
dag_id = "dynamic_task_group"
try:
api_response = dag_run_api_instance.post_dag_run(
dag_id,
dag_run_api.DAGRun(
dag_run_id="run_from_python_api_client",
),
)
pprint(api_response)
except airflow_client.client.OpenApiException as e:
print("Exception when calling DagRunApi->post_dag_run: %s\n" % e)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]