POST
/
v2
/
redis
/
change-plan
/
{id}
curl -X POST \
  https://api.upstash.com/v2/redis/change-plan/:id \
  -u 'EMAIL:API_KEY' \
  -d '{"plan_name": "fixed_1gb", "auto_upgrade": true, "prod_pack_enabled": false}'
"OK"

URL Parameters

id
string
required

The ID of the database whose plan will be changed.

Request Parameters

plan_name
string
required

The new plan for the database.
Available options: payg, fixed_250mb, fixed_1gb, fixed_5gb, fixed_10gb, fixed_50gb, fixed_100gb, fixed_500gb

auto_upgrade
boolean

(Optional) Whether to enable automatic upgrade for the database.

prod_pack_enabled
boolean

(Optional) Whether to enable the production pack for the database.

Note: If you do not want to change auto_upgrade or prod_pack_enabled, simply omit those fields from the request payload.

curl -X POST \
  https://api.upstash.com/v2/redis/change-plan/:id \
  -u 'EMAIL:API_KEY' \
  -d '{"plan_name": "fixed_1gb", "auto_upgrade": true, "prod_pack_enabled": false}'
"OK"