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

# Change password

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

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/change-password`
- Auth: HTTP bearer

Changes the authenticated user's password

## Request body

- ChangePasswordRequest
  - `currentPassword` string, required
  - `newPassword` string, required

## Response `200`

Password changed successfully

## Other responses

- `400`: Current password incorrect or validation failed
- `401`: Not authenticated

---

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