Skip to content

Change password for authenticated user

POST
/users/{userId}/password

Change the password for the authenticated user. Requires the current password for verification. All other sessions will be invalidated.

userId
required
string
object
currentPassword
required
string
>= 1 characters
newPassword
required
string
>= 8 characters

Password changed successfully

object
message
required
string

Current password is incorrect

object
error
required
string
code
required
string
Allowed values: INVALID_CURRENT_PASSWORD

Forbidden - can only change your own password

User not found