# Set Index Plan

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

## Endpoint

`POST https://api.upstash.com/v2/vector/index/{id}/setplan`

## Parameters

- `id` (path, string, required): The unique ID of the index to change plan for

## Request body

- `target_plan` (enum<string>, required): The new plan for the index

## Responses

### 200 - Index plan changed successfully


## cURL

```bash
curl --request POST \
  --url https://api.upstash.com/v2/vector/index/{id}/setplan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "target_plan": "<target_plan>"
  }'
```
