---
ai:
  exclude: true
search:
  tags:
    - User
    - POST
seo:
  description: >-
    Change the password for the current user. Reference for the POST
    /rest/api/user/current/password endpoint in the Confluence Data Center API.
sidebar:
  label: Change password
  badge: POST
title: Change password
type: openapi-operation
---
Change the password for the current user. 

 Validation Rules: 

- New password supplied cannot be null or blank

Example request URI(s):

`http://example.com/confluence/rest/api/user/current/password`

`POST /rest/api/user/current/password`

**Request body** (`application/json`)

password change details

- `oldPassword` (string)
- `newPassword` (string)

Request body example:

```json
{
  "oldPassword": "oldPassword",
  "newPassword": "newPassword"
}
```

**Responses**

- `204` — returned if the password changed successfully.
- `400` — returned if any error occurs while changing user password. Refer the validation rules above.
- `401` — returned if the user is not authenticated.
- `403` — returned if current password is wrong or if the user has exceeded number of allowed failed login attempts .
