---
title: "Change password (authenticated)"
method: PATCH
path: "/users/chng-pass/{id}"
tags: ["Users"]
---

# Change password (authenticated)

`PATCH /users/chng-pass/{id}`

Changes the password for the authenticated user. Requires the current
password for verification. Protected by selfOnly middleware (users can
only change their own password). Rate-limited.

## Path parameters

- `id` integer, required

## Request body

- object
  - `id` integer, required — User ID (must match path parameter)
  - `currentPassword` string, password, required — Current password for verification
  - `newPassword` string, password, required — Must be 8+ chars with uppercase, lowercase, and digit

## Response `202`

Password changed successfully

- object
  - `message` string
  - `data` UserSafe — User object with password_hash excluded
    - `id` integer, required
    - `name` string, required
    - `surname` string, required
    - `email` string, email, required
    - `role_id` integer, required — 1=Admin, 2=Reviewer, 3=Editor, 4=Auditor, 5=SuperAdmin
    - `createdAt` string, date-time, required
    - `last_login` string, date-time, nullable
    - `updatedAt` string, date-time
    - `is_demo` boolean
    - `organization_id` integer, nullable
    - `profile_photo_id` integer, nullable
    - `sso_provider` 'AzureAD' | 'null', nullable
    - `sso_user_id` string, nullable

## Other responses

- `400` — Validation error (weak password, missing fields)
- `403` — Business logic error (wrong current password)
- `404` — User not found
- `500` — Internal server error

## Changes

- **2026-08-26** `3b138b306b5b` — 2 breaking, 1 warning, 4 info
  - the response property `data/last_login` became nullable for the status `202`
  - removed the required property `data/created_at` from the response with the `202` status
  - removed the optional property `data/updated_at` from the response with the `202` status
  - added the optional property `data/sso_provider` to the response with the `202` status
  - …3 more
- **2026-07-13** `d86d0bf8bebe` — 3 info
  - api operation id `ChangePassword` was added
  - api tag `Users` added
  - api tag `Users - Password` removed
- **2026-07-13** `655215fe8c81` — 3 info
  - api operation id `ChangePassword` removed and replaced with ``
  - api tag `Users - Password` added
  - api tag `Users` removed
- **2026-06-22** `5878ba786a89` — 3 info
  - api operation id `ChangePassword` was added
  - api tag `Users` added
  - api tag `Users - Password` removed
- **2026-04-21** `55cdc040840c` — 5 breaking, 8 info
  - added the new required request property `currentPassword`
  - added the new required request property `id`
  - added the new required request property `newPassword`
  - request body became required
  - …9 more

[Full history](https://skmtc.dev/verifywise-ai/apis/verifywise-api/changes/users/chng-pass/:id/patch.md)

---

[API](https://skmtc.dev/verifywise-ai/apis/verifywise-api.md) · [All operations](https://skmtc.dev/verifywise-ai/apis/verifywise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/verifywise-ai/verifywise-api/revisions/3b138b306b5b/schema)
