v1

latestOpenAPI 3.0.1MIT2026-07-134925112.4 KB

Update Database Configuration

Update a database configuration belonging to the organization or user.

patch/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration

Path parameters

organizationSlugstring required

The slug of the organization or user account.

databaseNamestring required

The name of the database.

Request body

size_limitstring

The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb.

allow_attachboolean

Allow or disallow attaching databases to the current database.

block_readsboolean

Block all database reads.

block_writesboolean

Block all database writes.

delete_protectionboolean

Prevent the database from being deleted.

allowed_ipsstring[]

List of allowed IP addresses and CIDR blocks. Only connections from these sources are accepted. Pass an empty array to clear the list. Omit to leave unchanged.

allowed_aws_vpc_idsstring[]

List of allowed AWS VPC endpoint IDs (vpce-...). Only connections arriving through these endpoints are accepted. Pass an empty array to clear the list. Omit to leave unchanged.

Example request

{
  "delete_protection": true,
  "allowed_ips": [
    "203.0.113.7",
    "10.0.0.0/8"
  ],
  "allowed_aws_vpc_ids": [
    "vpce-0fe6c8807461bba49"
  ]
}

Response

Successful response

size_limitstring

The maximum size of the database in bytes. Values with units are also accepted, e.g. 1mb, 256mb, 1gb.

allow_attachboolean

Allow or disallow attaching databases to the current database.

block_readsboolean

The current status for blocked reads.

block_writesboolean

The current status for blocked writes.

delete_protectionboolean

Prevent the database from being deleted.

allowed_ipsstring[]

List of allowed IP addresses and CIDR blocks. Empty means no IP restriction.

allowed_aws_vpc_idsstring[]

List of allowed AWS VPC endpoint IDs. Empty means no VPC endpoint restriction.

Example response

{
  "size_limit": "10000",
  "allow_attach": true,
  "delete_protection": true,
  "allowed_ips": [
    "203.0.113.7",
    "10.0.0.0/8"
  ],
  "allowed_aws_vpc_ids": [
    "vpce-0fe6c8807461bba49"
  ]
}