Single Database
https://api.xata.io/workspaces/workspace_id/dbs/db_name
Given a parameter `db_name`, this path allows interacting with a specific database on Xata. Below are a number of operations that can be performed on a given database.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
db_name | The Database Name | path | ✅ | string |
Create Database
PUThttps://api.xata.io/workspaces/workspace_id/dbs/db_name
Create Database with identifier name
Request Body Type Definition
Responses
Delete Database
DELETEhttps://api.xata.io/workspaces/workspace_id/dbs/db_name
Delete a database and all of its branches and tables permanently.
Responses
Get Database Metadata
GEThttps://api.xata.io/workspaces/workspace_id/dbs/db_name
Retrieve metadata of the given database
Responses
Update Database Metadata
PATCHhttps://api.xata.io/workspaces/workspace_id/dbs/db_name
Update the color of the selected database