Skip to main content
POST
Reset password
Generates a new password for the database. The old password stops working immediately. PgBouncer is reloaded automatically. The database must be active. Otherwise the request is refused before anything changes. IP allowlist rules are allowed once DBHost can verify the new password from its own host; until then a reset on a database with rules is refused with IP_ALLOWLIST_BLOCKS_RESET. A few databases still need their owner login for that check, such as databases with the public explorer enabled and older single-login databases. With allowlist rules they answer DATABASE_NOT_READY: remove the rules, reset, then add them back.

Headers

Path parameters

Response

200 OK
idempotencyKey is echoed only when you sent one.

Errors

End an unfinished reset

Ends a reset that never finished so the next reset can start. DBHost reads the agent’s record of the reset first.
200 OK
If the agent is still working on the reset, the answer is a 409 ROTATION_IN_PROGRESS with the time it needs in Retry-After. When the agent cannot answer, a reset is ended once it is at least 60 seconds old.
All active connections using the old password will fail. Update your application’s connection string before or immediately after resetting.