class_docstr: Json API client implementation.
  
  This client is used to interact with a Json API server and perform various actions
  such as triggering DAG runs,deleting DAGs, interacting with pools, and getting lineage information.
class_docstr_tok: ["Json","API","client","implementation",".","This","client","is","used","to","interact","with","a","Json","API","server","and","perform","various","actions","such","as","triggering","DAG","runs",",","deleting","DAGs",",","interacting","with","pools",",","and","getting","lineage","information","."]
docstr: Trigger a DAG run.
  
  :param dag_id: The ID of the DAG to trigger.
  :param run_id: The ID of the DAG run to create. If not provided, a default ID will be generated.
  :param conf: A dictionary containing configuration data to pass to the DAG run.
  :param execution_date: The execution date for the DAG run, in the format "YYYY-MM-DDTHH:MM:SS".
  :param replace_microseconds: Whether to replace microseconds in the execution date with zeros.
  :return: A message indicating the status of the DAG run trigger.
docstr_tok: ["Trigger","a","DAG","run",".",":","param","dag_id",":","The","ID","of","the","DAG","to","trigger",".",":","param","run_id",":","The","ID","of","the","DAG","run","to","create",".","If","not","provided",",","a","default","ID","will","be","generated",".",":","param","conf",":","A","dictionary","containing","configuration","data","to","pass","to","the","DAG","run",".",":","param","execution_date",":","The","execution","date","for","the","DAG","run",",","in","the","format","``","YYYY-MM-DDTHH",":","MM",":","SS","''",".",":","param","replace_microseconds",":","Whether","to","replace","microseconds","in","the","execution","date","with","zeros",".",":","return",":","A","message","indicating","the","status","of","the","DAG","run","trigger","."]
code: def trigger_dag(
      self,
      dag_id,
      run_id=None,
      conf=None,
      execution_date=None,
      replace_microseconds=True,
  ):
      """Trigger a DAG run.
  
      :param dag_id: The ID of the DAG to trigger.
      :param run_id: The ID of the DAG run to create. If not provided, a default ID will be generated.
      :param conf: A dictionary containing configuration data to pass to the DAG run.
      :param execution_date: The execution date for the DAG run, in the format "YYYY-MM-DDTHH:MM:SS".
      :param replace_microseconds: Whether to replace microseconds in the execution date with zeros.
      :return: A message indicating the status of the DAG run trigger.
      """
      endpoint = f"/api/experimental/dags/{dag_id}/dag_runs"
      url = urljoin(self._api_base_url, endpoint)
      data = {
          "run_id": run_id,
          "conf": conf,
          "execution_date": execution_date,
          "replace_microseconds": replace_microseconds,
      }
      return self._request(url, method="POST", json=data)["message"]
  
file_path: airflow/airflow/api/client/json_client.py
imports: from __future__ import annotations
  from urllib.parse import urljoin
  from airflow.api.client import api_client
label_desc: Use image node_id 2 for calling the Client obj's underlying member method code with example usage: obj.trigger_dag(dag_id, run_id, conf, execution_date, replace_microseconds) and returns: self