PATCH
/
v1
/
organizations
/
{organizationSlug}
/
databases
/
{databaseName}
/
configuration
curl -L -X PATCH 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration' \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
      "size_limit": "500mb"
  }'
{
  "size_limit": "10000",
  "allow_attach": true,
  "block_reads": false,
  "block_writes": false
}
curl -L -X PATCH 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}/configuration' \
  -H 'Authorization: Bearer TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
      "size_limit": "500mb"
  }'

Path Parameters

organizationSlug
string
required

The slug of the organization or user account.

databaseName
string
required

The name of the database.

Body

application/json
The configuration to be applied to the chosen database.
size_limit
string

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

allow_attach
boolean

Allow or disallow attaching databases to the current database.

block_reads
boolean

Block all database reads.

block_writes
boolean

Block all database writes.

Response

200 - application/json
Successful response
size_limit
string

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

allow_attach
boolean

Allow or disallow attaching databases to the current database.

block_reads
boolean

The current status for blocked reads.

block_writes
boolean

The current status for blocked writes.