---
title: "Add user password"
method: POST
path: "/v1/users/password"
tags: ["Users"]
---

# Add user password

`POST /v1/users/password`

Add a new password to a user's passwords list

## Request body

- object
  - `new_password` string, required — A password to add
  - `old_password` string — An existing password of the user. Ignored and will be removed in 8.2.0.
  - `password_hash_method` 1 — Used when password is passed pre-hashed
  - `username` string — The username of the affected user. If missing, defaults to authenticated user

## Response `200`

Password added successfully

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.dev/redis/apis/redis-software-rest-api.md) · [All operations](https://skmtc.dev/redis/apis/redis-software-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redis/redis-software-rest-api/revisions/caec2005b95b/schema)
