Redis

Change Database Plan

This endpoint changes the plan of a Redis database.

POST/v2/redis/{id}/change-plan
cURL
curl --request POST \
  --url https://api.upstash.com/v2/redis/{id}/change-plan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "database_id": "6gcefvfd-9627-2tz5-4l71-c5679g19d2g4",
    "plan_name": "fixed_1gb",
    "auto_upgrade": true,
    "prod_pack_enabled": false
  }'
200Response
"OK"

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Path parameters

idpathstringrequired

The ID of the database whose plan will be changed

Body

database_idstring

ID of the database

plan_nameenum<string>required

The new plan for the database

Available options:freepaygfixed_250mbfixed_1gbfixed_5gbfixed_10gbfixed_50gbfixed_100gbfixed_500gb
auto_upgradeboolean

Whether to enable automatic upgrade for the database

prod_pack_enabledboolean

Whether to enable the production pack for the database

Response

200 — Plan changed successfully

Loading search…