---
title: "POST /api/data-studio/table/sync-schema"
method: POST
path: "/api/data-studio/table/sync-schema"
tags: ["/api/data-studio/table"]
---

# POST /api/data-studio/table/sync-schema

`POST /api/data-studio/table/sync-schema`

Batch version of /table/:id/sync_schema. Takes an abstract table selection as /table/edit does.
  - Currently checks policy before returning (so you might receive a 4xx on e.g. AuthZ policy failure)
  - The sync itself is however, asynchronous. This call may return before all tables synced.

## Request body

- MetabaseDataStudioApiTableTableSelectors
  - `database_ids` integer[]
  - `schema_ids` string[]
  - `table_ids` integer[]

## Response `2XX`

Successful response

- unknown

## Other responses

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

---

[API](https://skmtc.net/metabase/apis/metabase-api.md) · [All operations](https://skmtc.net/metabase/apis/metabase-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/metabase/metabase-api/revisions/08b5a2bafb4f/schema)
