---
title: "Update user"
method: PUT
path: "/v1/users/{user.name}"
tags: ["Redpanda Users"]
---

# Update user

`PUT /v1/users/{user.name}`

Update a user's credentials.

## Path parameters

- `user.name` string, required

## Request body

- object
  - `mechanism` 'SASL_MECHANISM_SCRAM_SHA_256' | 'SASL_MECHANISM_SCRAM_SHA_512' — SASL mechanism to use for authentication.
  - `password` string — Password.

## Response `200`

OK

- UpdateUserResponseUser — Updated user's name and SASL mechanism.
  - `mechanism` 'SASL_MECHANISM_SCRAM_SHA_256' | 'SASL_MECHANISM_SCRAM_SHA_512' — SASL mechanism to use for authentication.
  - `name` string

## Other responses

- `400` — Bad request. Check API documentation and update request.
- `401` — Unauthenticated.
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/revisions/7eef0bcc42e7/schema)
