---
title: "Rotate database user password"
method: POST
path: "/api/v1/databases/{database_id}/users/{name}/rotate"
tags: ["Managed Databases"]
---

# Rotate database user password

`POST /api/v1/databases/{database_id}/users/{name}/rotate`

## Request

- Base URL: `https://api.rafftechnologies.com`
- URL: `https://api.rafftechnologies.com/api/v1/databases/{database_id}/users/{name}/rotate`
- Auth: API key in header `X-API-Key`

Give a user you added a new password, returned once in the response. Open connections keep working until they disconnect. PostgreSQL, MySQL and ClickHouse; Valkey and Kafka return `501`.

## Path parameters

- `database_id` string, required
- `name` string, required

## Response `200`

New password

- object
  - `success` boolean
  - `password` string

## Other responses

- `400`: Invalid request parameters
- `401`: Authentication required
- `404`: Resource not found

## Changes

- **2026-10-05** `26292956c4b3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rafftechnologies/apis/raff-api/changes/api/v1/databases/:database_id/users/:name/rotate/post.md)

---

[API](https://skmtc.dev/rafftechnologies/apis/raff-api.md) - [All operations](https://skmtc.dev/rafftechnologies/apis/raff-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rafftechnologies/apis/raff-api/revisions/3d30cde0acb4?raw)
