# Reset User Password

| **API URL**         | {{url}}/fhir-user-service/users/reset-password |
| ------------------- | ---------------------------------------------- |
| **Method**          | PUT                                            |
| **Request Headers** | Authorization : Bearer \[token]                |
| **Description**     | Resets user password                           |

#### **Input** <a href="#accountcreate-input" id="accountcreate-input"></a>

| **Field Name**        | **Type** | **Example**                          |
| --------------------- | -------- | ------------------------------------ |
| Authorization(Header) | String   | Authorized token from login response |
| token                 | String   | Authorized token from login response |
| password              | String   | new user password                    |

#### **Sample Input:** <a href="#accountcreate-sampleinput" id="accountcreate-sampleinput"></a>

```postman_json
{
    "token": "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJGSElSQXBwbGljYXRpb24iLCJleHAiOjE3MDAwNDY2MzEsImlhdCI6MTY5OTk2MDIzMSwianRpIjoiMiIsInVzZXJuYW1lIjoiYWthc2guZ29waW5hdGhAaWRlYXMyaXQuY29tIn0.pJvg04HH_yLW7wG9mBJaQq2vACkKuXPVQVTUjd_yDY8",
    "password": "HashedPassword"
}
```

#### **Sample Output:** <a href="#accountcreate-sampleoutput" id="accountcreate-sampleoutput"></a>

```
{
    "dateTime": 1713446803463,
    "status": true,
    "errorCode": 200,
    "message": "Password has been set successfully.",
}
```
