---
title: "Reset database password"
method: POST
path: "/projects/{id}/databases/{databaseName}/reset-password"
tags: ["Databases"]
---

# Reset database password

`POST /projects/{id}/databases/{databaseName}/reset-password`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/databases/{databaseName}/reset-password`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Rotates the Volcano-managed PostgreSQL password used by clients when connecting
through pgproxy. This does not rotate or expose the internal owner password.
The returned password and connection string are the only client credentials that
will authenticate through pgproxy after reset.

Existing connections are not interrupted; new ones must use the returned
string. Proxies pick the rotation up within a few seconds, so the previous
password can still open new connections until then.

## Path parameters

- `id` string, uuid, required
- `databaseName` string, required

## Response `200`

Password reset successful

- object
  - `message` string
  - `role_name` string: Volcano-managed per-database client login (also the pgproxy routing username)
  - `new_password` string: New Volcano-managed client password. Always starts with `vpg_`.
  - `connection_string` string: Updated pgproxy connection string using Volcano-managed credentials.

## Other responses

- `400`: Database is not active
- `404`: Database not found
- `409`: A restore is running on the database. A restore replaces the credentials as it finishes, so wait for it and rotate afterwards.
- `503`: Volcano could not check whether a restore is running, and will not rotate a credential a restore might be about to replace. Retry.

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 6 breaking, 8 info
  - added the new path request parameter `databaseName`
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `404`
  - …10 more
- **2026-09-04** `c2ec82fb8ce8`: 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `404`
  - added the non-success response with the status `409`
  - added the non-success response with the status `503`
- **2026-08-27** `bb44e98aba2e`: 2 warning
  - deleted the `path` request parameter `databaseName`
  - deleted the `path` request parameter `id`

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/databases/:databaseName/reset-password/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
