v4

latestOpenAPI 3.0.3PostgreSQL Licenseraw.githubusercontent.com2026-08-01192952.2 KB
Databases

Select a database

Switches the active database connection to the specified database name.

post/api/databases/select

Request body

namestring required

The name of the database to select.

Response

Database selected successfully.

currentstring required

The name of the now-current database.

errorstring

An error message if the operation failed.

messagestring required

A human-readable status message.

successboolean required

Whether the database was selected successfully.