# Rename Index

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

## Endpoint

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

## Parameters

- `id` (path, string, required): The unique ID of the index to be renamed

## Request body

- `name` (string, required): The new name of the index

## Responses

### 200 - Index renamed successfully


## cURL

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