Skip to main content
POST
/
api
/
v1
/
databases
/
{id}
/
reset-password
Reset password
curl --request POST \
  --url https://api.example.com/api/v1/databases/{id}/reset-password
Generates a new password for the database. The old password stops working immediately. PgBouncer is reloaded automatically.

Path parameters

ParameterTypeDescription
iduuidDatabase ID

Response

200 OK
{
  "password": "new-generated-password"
}

Errors

StatusCodeDescription
404NOT_FOUNDDatabase doesn’t exist or isn’t owned by this user
All active connections using the old password will fail. Update your application’s connection string before or immediately after resetting.