Vector

Rename Index

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

POST/v2/vector/index/{id}/rename
cURL
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>"
  }'
200Response
"OK"

Authorization

Authorizationheaderstringrequired

Bearer authentication header of the form Bearer <token>.

Path parameters

idpathstringrequired

The unique ID of the index to be renamed

Body

namestringrequired

The new name of the index

Response

200 — Index renamed successfully

Loading search…