---
title: "POST /api/ee/transforms-python/test-run"
method: POST
path: "/api/ee/transforms-python/test-run"
tags: ["/api/ee/transforms-python"]
---

# POST /api/ee/transforms-python/test-run

`POST /api/ee/transforms-python/test-run`

Evaluate an ad-hoc python transform on a sample of input data.
  Intended for short runs for early feedback. Input/output/timeout limits apply.

## Request body

- object
  - `code` string, required
  - `source_tables` MetabaseTransformsBaseUtilSourceTableEntry[], required
    - `alias` string, required
    - `database_id` integer, required
    - `schema` string, nullable, required
    - `table` string
    - `table_id` integer, nullable

## Response `2XX`

Successful response

- object
  - `error` object
    - `message` union, required
      - unknown
      - unknown
  - `logs` string, required
  - `output` object
    - `cols` object[], required
      - `name` string, required
    - `rows` unknown[], required
      - unknown

## Other responses

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

## Changes

- **2026-05-22** `b1dc4ea67567` — 2 breaking
  - the `source_tables` request property's minItems was increased to `1`
  - the `source_tables` request property type/format changed from `object`/`` to `array`/``
- **2026-03-09** `78297d193ca4` — 1 info
  - api operation id `post-api-ee-transforms-python-test-run` was added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/ee/transforms-python/test-run/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-service-production.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/b1dc4ea67567/schema)
