Skip to main content
PATCH
Change a database

Path Parameters

project_id
string
required

The project's id (not its slug). GET /admin/api/projects lists each project's id and slug.

database_id
string
required

Database id or name.

Body

application/json
name
string
Maximum string length: 64
connection_string
string

Your own read-only PostgreSQL login, as postgres://user:password@host:5432/database. Create a role with SELECT only, since a login that can write is refused. Write-only: never returned. TLS is required.

schemas
string[]

Schemas shown to agents and put on the search path. Default ["public"].

masked_columns
string[]

Column names whose values are returned as [masked].

limits_override
object | null

Response

Successful operation

The response is of type object.