action apache_post_set_task_instances_state { label: "Set a state of task instances" description: "Updates the state for multiple task instances simultaneously.\n" provider: apache method: POST path: "/dags/{dag_id}/updateTaskInstancesState" encoding: json input: { type: "object" properties: { dag_run_id: { type: "string" description: "The task instance's DAG run ID. Either set this or execution_date but not both.\n\n*New in version 2.3.0*\n" } dry_run: { type: "boolean" description: "If set, don't actually run this operation. The response will contain a list of task instances\nplanned to be affected, but won't be modified in any way.\n" } execution_date: { type: "string" format: "datetime" description: "The execution date. Either set this or dag_run_id but not both." } include_downstream: { type: "boolean" description: "If set to true, downstream tasks are also affected." } include_future: { type: "boolean" description: "If set to True, also tasks from future DAG Runs are affected." } include_past: { type: "boolean" description: "If set to True, also tasks from past DAG Runs are affected." } include_upstream: { type: "boolean" description: "If set to true, upstream tasks are also affected." } new_state: { type: "string" description: "Expected new state." enum: ["success", "failed"] } task_id: { type: "string" description: "The task ID." } } } output: { type: "object" properties: { task_instances: { type: "array" items: { type: "object" properties: { dag_id: { type: "string" description: "The DAG ID." } dag_run_id: { type: "string" description: "The DAG run ID." } execution_date: { type: "string" format: "datetime" } task_id: { type: "string" description: "The task ID." } } } } } } }