Reset user password

PUT /api/experience/profile/password

Reset the user's password. (ForgotPassword interaction only)

application/json

Body Required

  • password string Required

    The new password to update. The password must meet the password policy requirements and can not be the same as the current password.

Responses

  • The password has been successfully updated.

  • The current interaction event is not ForgotPassword. The password can only be updated through the ForgotPassword interaction.

  • The user has not been identified yet. The user must be identified before updating the password.

  • The password can not be updated due to validation errors, check error message for more details.
    - user.password_policy_violation: The password does not meet the password policy requirements.
    - user.same_password: The new password is the same as the current password.

PUT /api/experience/profile/password
curl \
 -X PUT https://[tenant_id].logto.app/api/experience/profile/password \
 -H "Content-Type: application/json" \
 -d '{"password":"string"}'
Request examples
{
  "password": "string"
}