---
title: "Change Database Plan"
method: POST
path: "/redis/{id}/change-plan"
tags: ["redis"]
---

# Change Database Plan

`POST /redis/{id}/change-plan`

## Request

- Base URL: `https://api.upstash.com/v2`
- URL: `https://api.upstash.com/v2/redis/{id}/change-plan`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/upstash/apis/developer-api-upstash/docs/redis/:id/change-plan/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint changes the plan of a Redis database.

## Path parameters

- `id` string, required

## Request body

- ChangePlanRequest
  - `database_id` string: ID of the database
  - `plan_name` 'free' | 'payg' | 'fixed_250mb' | 'fixed_1gb' | 'fixed_5gb' | 'fixed_10gb' | 'fixed_50gb' | 'fixed_100gb' | 'fixed_500gb', required: The new plan for the database
  - `auto_upgrade` boolean: Whether to enable automatic upgrade for the database
  - `prod_pack_enabled` boolean: Whether to enable the production pack for the database

## Response `200`

Plan changed successfully

- string

---

[API](https://skmtc.dev/upstash/apis/developer-api-upstash.md) - [All operations](https://skmtc.dev/upstash/apis/developer-api-upstash/llms.txt) - [OpenAPI document](https://skmtc.dev/upstash/apis/developer-api-upstash/revisions/bddbdcab9052?raw)
