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

Path Parameters

organizationName
string
required

The name of the organization or user.

databaseName
string
required

The name of the database.

Body

application/json
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
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.