POST
/
v2
/
redis
/
enable-tls
/
{id}
curl --request POST \
  --url https://api.upstash.com/v2/redis/enable-tls/{id} \
  --header 'Authorization: Basic <encoded-value>'
{
  "database_id": "93e3a3e-342c-4683-ba75-344c08ae143b",
  "cluster_id": "dea1f974",
  "database_name": "global-test",
  "database_type": "Pay as You Go",
  "region": "global",
  "port": 30143,
  "creation_time": 1658909671,
  "state": "active",
  "password": "dd1803832a2746309e118373549e574d",
  "user_email": "support@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 enable TLS

Response

200 - application/json

Database details after enabling TLS

The response is of type object.