---
title: "Set Index Plan"
method: POST
path: "/vector/index/{id}/setplan"
tags: ["vector"]
---

# Set Index Plan

`POST /vector/index/{id}/setplan`

## Request

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

This endpoint is used to change the plan of an index.

## Path parameters

- `id` string, required

## Request body

- object
  - `target_plan` 'free' | 'payg' | 'fixed', required: The new plan for the index

## Response `200`

Index 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)
