Skip to main content
POST
Change Database Plan

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the database whose plan will be changed

Body

application/json
plan_name
enum<string>
required

The new plan for the database

Available options:
free,
payg,
fixed_250mb,
fixed_1gb,
fixed_5gb,
fixed_10gb,
fixed_50gb,
fixed_100gb,
fixed_500gb
Example:

"fixed_1gb"

database_id
string

ID of the database

Example:

"6gcefvfd-9627-2tz5-4l71-c5679g19d2g4"

auto_upgrade
boolean

Whether to enable automatic upgrade for the database

Example:

true

prod_pack_enabled
boolean

Whether to enable the production pack for the database

Example:

false

Response

200 - application/json

Plan changed successfully

The response is of type string.

Example:

"OK"