> For the complete documentation index, see [llms.txt](https://bump.sh/nethesis/doc/nethcti-middleware/llms.txt)

# Change the password of the logged in user

> POST /user/password
> 
> On success the other login sessions of the user are logged out and their websockets closed; the session of the request and integration tokens (persistent tokens) stay valid.



## Servers
- Local development server: http://localhost:8080 (Local development server)
- Production server: https://middleware.example.com/api (Production server)


## Authentication methods
- Bearer auth


## Parameters



### Body: application/json (object)

- **current_password** (string)

- **new_password** (string)



## Responses
### 200
Password changed (message `password_changed`)

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** ()

- **error** (string)


### 400
Rejected, same messages as `/password/change`

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** ()

- **error** (string)


### 401
Unauthorized

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** ()

- **error** (string)


### 503
User portal not configured or unreachable (`password_change_unavailable`)

#### Body: application/json (object)
- **code** (integer)

- **message** (string)

- **data** ()

- **error** (string)



[Powered by Bump.sh](https://bump.sh)
