Homarr
Users

Change a user password

PATCH/api/users/{userId}/changePassword

Change a credentials account's password. Changing your own password requires the previous password, including for admins. Admins can reset another user's password without verifying their previous password. Disabled in demo mode.

ApiKey<token>

API key which can be obtained in the Homarr administration dashboard

In: header

Path Parameters

userId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/users/string/changePassword" \  -H "Content-Type: application/json" \  -d '{    "previousPassword": "string",    "password": "stringst",    "confirmPassword": "string"  }'
null