---
title: "Update password"
method: POST
path: "/api/my-account/password"
tags: ["My account"]
---

# Update password

`POST /api/my-account/password`

Update password for the user. A logto-verification-id header is required when the user has at least one security verification method: password, primary email, or primary phone. The header can be omitted only when the user has none of these methods and is setting the first password.

## Request body

- object
  - `password` string, required — The new password for the user.

## Response `204`

The password was updated successfully.

## Other responses

- `400` — Bad Request
- `401` — Permission denied, verification is required or the verification record is invalid.
- `403` — Forbidden
- `422` — Unprocessable Content

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/0287c6a59eba/schema)
