Table Schema
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/schema
This endpoint enables reading or updating the schema of a given table.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
table_name | The Table name | path | ✅ | string |
Get Table Schema
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/schema
Responses
Update Table Schema
PUThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/schema