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

# Change Password

`POST /api/v1/auth/change-password`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/change-password`
- Auth: none declared

Change current user password.

Args:
    request: Password change data
    current_user: Current authenticated user
    session: Database session

Raises:
    NotFoundError: If user not found
    UnauthorizedError: If old password is invalid
    BadRequestError: If new password is too weak

## Headers

- `Authorization` string

## Request body

- ChangePasswordRequest: Change password request model.
  - `old_password` string, required
  - `new_password` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api.md) · [All operations](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anomalyarmor/apis/anomalyarmor-api/revisions/51c755fb5d0b?raw)
