ruipoliveira opened a new issue, #134:
URL: https://github.com/apache/airflow-client-python/issues/134

   ```
   import airflow_client.client
   from airflow_client.client.api import dag_api, dag_run_api
   
   configuration = airflow_client.client.Configuration(
       host="https://url.dummy/api/v2";,
       username="dummy",
       password="dummy",
   )
   
   api_client = airflow_client.client.ApiClient(configuration)
   api_instance = dag_api.DAGApi(api_client)
   api_run = dag_run_api.DagRunApi(api_client)
   
   trigger_dag_run_post_body = 
airflow_client.client.TriggerDAGRunPostBody(dag_run_id="manual", conf={}) 
   
   api_response = api_run.trigger_dag_run("my_dag", trigger_dag_run_post_body)
   print("The response of DagRunApi->trigger_dag_run:\n")
   pprint(api_response)
   
   ```
   
   
   Error response: 
   
   ```
   ...
   airflow_client.client.exceptions.ApiException: (405)
   Reason: Method Not Allowed
   HTTP response headers: HTTPHeaderDict({'Date': 'Wed, 04 Jun 2025 09:31:54 
GMT', 'Content-Type': 'application/json', 'Content-Length': '31', 'Connection': 
'keep-alive', 'allow': 'GET', 'vary': 'Accept-Encoding', 
'Strict-Transport-Security': 'max-age=63072000'})
   HTTP response body: {"detail":"Method Not Allowed"}
   ```
   
   
   


-- 
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]

Reply via email to