POST
/
v2
/
redis
/
rename
/
{id}
curl --request POST \
  --url https://api.upstash.com/v2/redis/rename/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "MyRedis"
}'
{
  "database_id": "96ad0856-03b1-4ee7-9666-e81abd0349e1",
  "cluster_id": "dea1f974",
  "database_name": "MyRedis",
  "database_type": "Pay as You Go",
  "region": "eu-central-1",
  "port": 30143,
  "creation_time": 1658909671,
  "state": "active",
  "password": "49665a1710f3434d8be008aab50f38d2",
  "user_email": "example@upstash.com",
  "endpoint": "eu2-sought-mollusk-30143.upstash.io",
  "tls": true
}

Authorizations

Authorization
string
header
required

Basic authentication using email and API key

Path Parameters

id
string
required

The ID of the database to be renamed

Body

application/json

Response

200 - application/json

Database renamed successfully

The response is of type object.