---
title: "Update data source schema"
method: POST
path: "/{account}/data_sources/{data_source}/schema_updates"
---

# Update data source schema

`POST /{account}/data_sources/{data_source}/schema_updates`

## Request

- Base URL: `https://modeanalytics.com/api`
- URL: `https://modeanalytics.com/api/{account}/data_sources/{data_source}/schema_updates`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/thoughtspot/apis/mode/docs/:account/data_sources/:data_source/schema_updates/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates and queues a `schema update` for a `data source`

## Path parameters

- `account` string, required
- `data_source` string, required

## Response `200`

`DataSourceSchemaUpdate` response

- DataSourceSchemaUpdate
  - `id` string, required
  - `token` string, required
  - `state` string, required
  - `content_length` string, required
  - `number_of_schemas` string, required
  - `number_of_tables` string, required
  - `last_succesful_refresh_at` string
  - `webapp_uri` string
  - `_links` DataSourceSchemaUpdateLinks, required
    - `self` Link, required
      - `href` string, required
      - `templated` boolean
  - `_embedded` unknown

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: `DataSource` not found

---

[API](https://skmtc.dev/thoughtspot/apis/mode.md) - [All operations](https://skmtc.dev/thoughtspot/apis/mode/llms.txt) - [OpenAPI document](https://skmtc.dev/thoughtspot/apis/mode/revisions/4c694c3fdeb1?raw)
