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.

Request

namespace
string
required
The name of the namespace to rename.
newNamespace
string
required
The new name of the namespace.

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 }
}