---
title: "Update Password"
method: POST
path: "/api/auth/password-update"
tags: ["Authentication"]
---

# Update Password

`POST /api/auth/password-update`

## Request

- Base URL: `https://pegarex.com.br` (the document declares no server; this is the origin it was published from)
- URL: `https://pegarex.com.br/api/auth/password-update`
- Auth: HTTP bearer

Update password for authenticated user. Requires current password.

For Google-only users without a password, this acts as 'set a password'
after a verified session — still safe because the user is authenticated.

## Request body

- PasswordUpdateRequest
  - `current_password` string, required
  - `new_password` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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