Single Database
https://api.xata.io/workspaces/workspace_id/dbs/db_nameGiven 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_nameCreate Database with identifier name
Request Body Type Definition
Responses
Delete Database
DELETEhttps://api.xata.io/workspaces/workspace_id/dbs/db_nameDelete a database and all of its branches and tables permanently.
Responses
Get Database Metadata
GEThttps://api.xata.io/workspaces/workspace_id/dbs/db_nameRetrieve metadata of the given database
Responses
Update Database Metadata
PATCHhttps://api.xata.io/workspaces/workspace_id/dbs/db_nameUpdate the color of the selected database