---
title: "Update table schema"
method: POST
path: "/table/update-schema/{database_name}/{table_name}"
tags: ["Tables"]
---

# Update table schema

`POST /table/update-schema/{database_name}/{table_name}`

Updates the specified table schema. Schema can include column descriptions in the format `[name, type, alias, description]`.

## Path parameters

- `database_name` Name, required — unresolved $ref
- `table_name` Name, required — unresolved $ref

## Response `200`

OK

- TableReference
  - `database` Name, required — unresolved $ref
  - `table` Name, required — unresolved $ref
  - `type` Type, required — unresolved $ref

---

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