POST
/
rename-namespace
curl $UPSTASH_VECTOR_REST_URL/rename-namespace \
  -X POST \
  -d '{ "namespace": "ns", "newNamespace": "newNs" }' \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
    "result": { "renamed": true }
}
The default namespace, which is the empty string "", cannot be renamed.
There should not be a namespace with the given new namespace name, unless the delete existing flag is passed.

Request

namespace
string
required
The name of the namespace to rename.
newNamespace
string
required
The new name of the namespace.
deleteExisting
boolean
default:"false"
When the delete existing flag is passed, if there exists a namespace with the new namespace name, it is deleted before the rename operation.

Response

renamed
boolean
Whether the namespace is renamed or not.
curl $UPSTASH_VECTOR_REST_URL/rename-namespace \
  -X POST \
  -d '{ "namespace": "ns", "newNamespace": "newNs" }' \
  -H "Authorization: Bearer $UPSTASH_VECTOR_REST_TOKEN"
{
    "result": { "renamed": true }
}