---
title: "Change the current user password"
method: PUT
path: "/api/users/{username}/password"
tags: ["Users"]
---

# Change the current user password

`PUT /api/users/{username}/password`

## Path parameters

- `username` string, required

## Request body

- object
  - `current_password` string
  - `new_password` string

## Response `200`

The password was changed successfully.

## Other responses

- `400` — Current or new password is missing.
- `403` — If {username} is not the currently logged in user.
- `422` — If the current password is not valid.
- `503` — If the user is using Passkey authentication, the password cannot be changed.

---

[API](https://skmtc.net/contao/apis/contao-manager-api.md) · [All operations](https://skmtc.net/contao/apis/contao-manager-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/contao/contao-manager-api/versions/074d8046de13/schema)
