---
title: "Update Account Password"
method: PATCH
path: "/account/password"
tags: ["account"]
---

# Update Account Password

`PATCH /account/password`

Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth and Team Invites, oldPassword is optional.

## Request body

- object
  - `oldPassword` string — Old user password. Must be between 6 to 32 chars.
  - `password` string, required — New user password. Must be between 6 to 32 chars.

## Response `200`

User

- User — User
  - `$id` string, required — User ID.
  - `email` string, required — User email address.
  - `emailVerification` boolean, required — Email verification status.
  - `name` string, required — User name.
  - `passwordUpdate` integer, required — Unix timestamp of the most recent password update
  - `prefs` object, required — User preferences as a key-value object
  - `registration` integer, required — User registration date in Unix timestamp.
  - `status` integer, required — User status. 0 for Unactivated, 1 for active and 2 is blocked.

---

[API](https://skmtc.net/appwrite/apis/client.md) · [All operations](https://skmtc.net/appwrite/apis/client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/appwrite/client/versions/b1c00a0bc3fb/schema)
