POST
/
v2
/
vector
/
index
/
{id}
/
rename
curl --request POST \
  --url https://api.upstash.com/v2/vector/index/{id}/rename \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "myindex"
}'
"OK"

Authorizations

Authorization
string
header
required

Basic authentication using email and API key

Path Parameters

id
string
required

The unique ID of the index to be renamed

Example:

"14841111-b834-4788-925c-04ab156d1123"

Body

application/json

Response

200 - application/json

Index renamed successfully

The response is of type string.