Single Table Column
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns/column_name
This endpoint allows working with a single column from 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 |
column_name | The Column name | path | ✅ | string |
Get Column Information
GEThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns/column_name
Get the definition of a single column.
Responses
Update Column
PATCHhttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns/column_name
Update column with partial data. Can be used for renaming the column by providing a new "name" field.
Request Body Type Definition
Responses
Delete Column
DELETEhttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/columns/column_name
Deletes the specified column.