> For the complete documentation index, see [llms.txt](https://spice.docs.medtroniclabs.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spice.docs.medtroniclabs.org/engineering/api-documentation/common-services/set-password-for-new-user.md).

# Set Password for new User

| **API URL**     | {{url}}/user-service/user/set-password/{{token}} |
| --------------- | ------------------------------------------------ |
| **Method**      | POST                                             |
| **Description** | Set Password for new user creation               |

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

| **Field Name**         | **Type** | **Mandatory** | **Example**                                                                                                                             |
| ---------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Authorization (Header) | String   | Yes           | Bearer 1ba363a1edf54402b51f58060aa52b11d30f99a490295adec900fdabf2b472181c0bfb165be18f4f5c430c7218a244bd29b9300d3471acc08197ccfb996118f6 |
| client(Header)         | String   | Yes           | web                                                                                                                                     |
| password               | String   | Yes           | Hashed password                                                                                                                         |

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

#### { <a href="#setpasswordfornewuser-v2" id="setpasswordfornewuser-v2"></a>

&#x20;   "password": "3901e08e724bb73a72137e03e2f03d54d70eaeea39f8a7e0459f15d9e80585ffd2159283b8324d72f7ba8c2aa2f0e82e5c1b685d7ef569e2ebad02d71ba4076e"

}

**Sample Output:**

| **Field Name** | **Type** | **Comments**                       |
| -------------- | -------- | ---------------------------------- |
| message        | String   | Password has been set successfully |
| entity         | Boolean  | Entity                             |
| status         | Boolean  | Status of API                      |
| responseCode   | Int      | Response Code of API               |

```
{
    "message": "Password has been set successfully.",
    "entity": {
        "isPasswordSet": true
    },
    "status": true,
    "entityList": null,
    "responseCode": 200,
    "totalCount": null
}
```
