---
title: "Change Password"
method: POST
path: "/v1/auth/change-password"
tags: ["Teams", "auth"]
---

# Change Password

`POST /v1/auth/change-password`

Change the current user's password.

Verifies the current password, updates to the new password,
clears the password_change_required flag, and returns a fresh JWT.

Args:
    request: Change password request with current and new passwords
    response: FastAPI response object to set cookies
    claims: JWT claims from middleware
    user_manager: FastAPI Users user manager
    session: Database session

Returns:
    JWT token response with access_token and token_type

Raises:
    UnauthenticatedException: If current password is invalid
    BadRequestException: If new password is same as current or invalid

## Request body

- ChangePasswordRequest — Request model for changing password.
  - `current_password` string, required
  - `new_password` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/vijilai/apis/vijil-console-api-combined.md) · [All operations](https://skmtc.net/vijilai/apis/vijil-console-api-combined/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vijilai/vijil-console-api-combined/versions/a8b2ee2b2d06/schema)
