---
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
    - `created_at` string, date-time, required
    - `last_login` string, date-time
    - `updated_at` string, date-time
    - `is_demo` boolean
    - `organization_id` integer, nullable
    - `profile_photo_id` integer, 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

---

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