Password Update

/password/update
Arguments:
  • token (required)
  • curpass (required)
  • newpass (required)
Info: Yes, this is an api call and yes you have to pass in your old password. If you have forgotten your password, go to the forgot password page in the web portal to reset it.
Example Success
{
"code": 200,
"status": "success",
"data": "successfully updated password"
}
Example Error
You might see this if your user has not yet set their password. How you got this far (your api key) without setting the password is beyond me, but still.
{
"code": 500,
"status": "error",
"data": "could not save new password"
}
If the information passed is incorrect, or incomplete you will see a 400 error.
{
"code": 400,
"status": "error",
"data": "Missing variable: curpass"
}