---
title: "POST /api/transform/{id}/run-dag"
method: POST
path: "/api/transform/{id}/run-dag"
tags: ["/api/transform"]
---

# POST /api/transform/{id}/run-dag

`POST /api/transform/{id}/run-dag`

## Request

- Base URL: `` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/transform/{id}/run-dag`
- Auth: API key in header `X-API-Key`

Trigger a DAG-reprocess run starting from a single transform: runs the transform and every
  transform in its transitive dependency closure. Returns a 202 with the created `dag_run_id`, or a
  nil `dag_run_id` when nothing was run (a DAG run for this transform is already in progress, or the
  closure is empty).

  `direction` selects which transforms are included:
  - `upstream`   — the seed transform plus all transforms it depends on
  - `downstream` — the seed transform plus all transforms that depend on it

## Path parameters

- `id` integer, required

## Request body

- object
  - `direction` 'upstream' | 'downstream', required

## Response `2XX`

Successful response

- object
  - `body` object, required
    - `dag_run_id` integer, nullable, required
    - `message` unknown, required
  - `status` unknown, required

## Other responses

- `4XX`: Client error response
- `5XX`: Server error response

## Changes

- **2026-11-04** `2e178f5a7934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/transform/:id/run-dag/post.md)

---

[API](https://skmtc.dev/metabase/apis/metabase-api.md) - [All operations](https://skmtc.dev/metabase/apis/metabase-api/llms.txt) - [OpenAPI document](https://skmtc.dev/metabase/apis/metabase-api/revisions/2e178f5a7934?raw)
