---
title: "Change password"
method: POST
path: "/api/users/{userId}/password"
tags: ["Users"]
---

# Change password

`POST /api/users/{userId}/password`

Updates a user's password

## Path parameters

- `userId` string, required

## Request body

- ChangePasswordCommand — Command for changing a user's password. Used as the request body for password change endpoints.
  - `currentPassword` string, required — The current password of the user.
  - `newPassword` string, required — The new password for the user.

## Response `204`

Password updated successfully

---

[API](https://skmtc.net/optimistiksas/apis/oibus-api.md) · [All operations](https://skmtc.net/optimistiksas/apis/oibus-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/optimistiksas/oibus-api/revisions/fe8fd32c9fdc/schema)
