---
title: "POST /api/ee/data-studio/table/publish-tables"
method: POST
path: "/api/ee/data-studio/table/publish-tables"
tags: ["/api/ee/data-studio/table"]
---

# POST /api/ee/data-studio/table/publish-tables

`POST /api/ee/data-studio/table/publish-tables`

Set collection for each of selected tables and all upstream dependencies recursively.

## Request body

- MetabaseEnterpriseDataStudioApiTablePublishTableSelectors
  - `collection_id` integer, required — value must be an integer greater than zero.
  - `database_ids` integer[]
  - `schema_ids` string[]
  - `table_ids` integer[]

## Response `2XX`

Successful response

- MetabaseEnterpriseDataStudioApiTablePublishTablesResponse — Schema for /publish-tables endpoint response. Matches frontend PublishTablesResponse type.
  - `target_collection` unknown, required

## Other responses

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

## Changes

> 13 revisions in range; 1 could not be searched.

- **2026-05-22** `b1dc4ea67567` — 1 breaking
  - added the new required request property `collection_id`
- **2026-03-09** `78297d193ca4` — 1 info
  - api operation id `post-api-ee-data-studio-table-publish-tables` was added

[Change history](https://skmtc.dev/metabase/apis/metabase-api/changes/api/ee/data-studio/table/publish-tables/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/e879e0319b12/schema)
