Rename database
https://api.xata.io/workspaces/workspace_id/dbs/db_name/rename
Given a parameter db_name
, this path allows you to rename your Xata database. When you rename a database all URLs accessing the database have to be updated.
Expected Parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
db_name | The Database Name | path | ✅ | string |
Rename Database
POSThttps://api.xata.io/workspaces/workspace_id/dbs/db_name/rename
Change the name of an existing database
Request Body Type Definition
1 2 3 4 5 6
type RenameDatabase = { /* * @minLength 1 */ newName: string; };
Status Code | Description | Example Response/Type Definition |
---|---|---|
200 | OK |
|
400 | Bad Request |
|
401 | Authentication Error |
|
422 | Example response |
|
423 | Example response |
|
5XX | Unexpected Error |