---
title: "Change password for a user"
method: POST
path: "/api/admin/user-admin/{id}/change-password"
tags: ["Users"]
---

# Change password for a user

`POST /api/admin/user-admin/{id}/change-password`

Change password for a user as an admin

## Path parameters

- `id` integer, required

## Request body

- PasswordSchema — Fields used to create new password or update old password
  - `password` string, required — The new password to change or validate.
  - `oldPassword` string — The old password the user is changing. This field is for the non-admin users changing their own password.
  - `confirmPassword` string — The confirmation of the new password. This field is for the non-admin users changing their own password.

## Response `200`

This response has no body.

## Other responses

- `400` — The request data does not match what we expect.
- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `403` — The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation

---

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