PATCH
/
organizations
/
{organization}
/
databases
/
{database}
/
deploy-requests
/
{number}
/
throttler
Update deploy request throttler configurations
curl --request PATCH \
  --url https://api.planetscale.com/v1/organizations/{organization}/databases/{database}/deploy-requests/{number}/throttler \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ratio": 123,
  "configurations": [
    "<string>"
  ]
}'
{
  "keyspaces": [
    "<string>"
  ],
  "configurable": {},
  "configurations": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

organization
string
required

The name of the deploy request's organization

database
string
required

The name of the deploy request's database

number
string
required

The number of the deploy request

Body

application/json
ratio
number

A throttler ratio between 0 and 95 that will apply to all keyspaces affected by the deploy request. 0 effectively disables throttler, while 95 drastically slows down migrations in the deploy request

configurations
string[]

If specifying throttler ratios per keyspace, an array of { "keyspace_name": "mykeyspace", "ratio": 10 }, one for each eligible keyspace

Response

Deploy request throttler configurations

keyspaces
string[]
required

Keyspaces that are eligible for throttler configuration in the configurable resource (database or deploy request)

configurable
object
required
configurations
object[]
required