/
reset_password

reset_password


Description

You can use this to reset the user's password if it was lost or if the user needs to change their password.

On your site if the user clicks the Lost Password link you would send them an email so they can verify the email and when they click the link you present them with a form to reset the password at your end then make the API call to reset the password.

Parameters

username
new_password


Request

curl -X POST \
-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{"username":"webuser.api","new_password":"NeW.Pa55W0rD"}' \
-k https://your.domain.com/api/users/reset_password


Response

{"status":"success","results":[]}

Related content

delete_user
delete_user
More like this
create_user
create_user
More like this
delete_sipaccount
delete_sipaccount
More like this
get_users
get_users
More like this
add_credit_balance
add_credit_balance
More like this
add_user_to_group
add_user_to_group
More like this