- Getting Started
- OpenAPI Specification
- Authentication
- HTTP Status Codes
- Redis
- POSTCreate a Redis Database (Regional - DEPRECATED)
- POSTCreate a Redis Database
- DELDelete Database
- GETList Databases
- GETGet Database
- GETGet Database Stats
- POSTUpdate Regions (Global)
- POSTReset Password
- POSTRename Database
- POSTEnable TLS
- POSTEnable Eviction
- POSTDisable Eviction
- POSTEnable Auto Upgrade
- POSTDisable Auto Upgrade
- POSTMove To Team
- Backup
- POST
- Vector
- Teams
- DevOps
Redis
Reset Password
This endpoint updates the password of a database.
POST
/
v2
/
redis
/
reset-password
/
{id}
curl --request POST \
--url https://api.upstash.com/v2/redis/reset-password/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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,
"consistent": false,
"pool_id": "f886c7f3",
"rest_token": "AXW_ASQgOTZhZDA4NTYtMDNiMS00ZWU3LTk2NjYtZTgxYWJkMDM0OWUxNDk2NjVhMTcxMGYzNDM0ZDhiZTAwOGFhYjUwZjM4ZDI=",
"read_only_rest_token": "AnW_ASQgOTZhZDA4NTYtMDNiMS00ZWU3LTk2NjYtZTgxYWJkMDM0OWUxB5sRhCROkPsxozFcDzDgVGRAxUI7UUr0Y6uFB7jMIOI="
}
Authorizations
Basic authentication using email and API key
Path Parameters
The ID of the database to reset password
Response
200 - application/json
Password reset successful
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.upstash.com/v2/redis/reset-password/{id} \
--header 'Authorization: Basic <encoded-value>'
{
"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,
"consistent": false,
"pool_id": "f886c7f3",
"rest_token": "AXW_ASQgOTZhZDA4NTYtMDNiMS00ZWU3LTk2NjYtZTgxYWJkMDM0OWUxNDk2NjVhMTcxMGYzNDM0ZDhiZTAwOGFhYjUwZjM4ZDI=",
"read_only_rest_token": "AnW_ASQgOTZhZDA4NTYtMDNiMS00ZWU3LTk2NjYtZTgxYWJkMDM0OWUxB5sRhCROkPsxozFcDzDgVGRAxUI7UUr0Y6uFB7jMIOI="
}