# Update user password **PATCH /api/users/{userId}/password** Update user password for the given ID. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters #### Path parameters - **userId** (string) The unique identifier of the user. ## Body parameters Content-type: application/json - **password** (string) New password for the user. ## Responses ### 200: User password updated successfully. #### Body Parameters: application/json (object) - **id** (string) - **username** (string | null) - **primaryEmail** (string | null) - **primaryPhone** (string | null) - **name** (string | null) - **avatar** (string | null) - **customData** (object) arbitrary - **identities** (object) - **lastSignInAt** (number | null) - **createdAt** (number) - **updatedAt** (number) - **profile** (object) - **applicationId** (string | null) - **isSuspended** (boolean) - **hasPassword** (boolean) - **ssoIdentities** (array[object]) ### 400: Bad Request ### 401: Unauthorized ### 403: Forbidden ### 422: Unprocessable Content [Powered by Bump.sh](https://bump.sh)