Table Columns
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns
This endpoint allows working with a table's columns.
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 |
List Table Columns
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns
Retrieves the list of table columns and their definition. This endpoint returns the column list with object columns being reported with their full dot-separated path (flattened).
Responses
Create New Column
POSThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns
Adds a new column to the table. The body of the request should contain the column definition.