Reset Password
Check your e-mail for further instructions.
Reset
Name
changepassword
Auth
yes
Description
Change current user's password
Takes oldpassword that must contain user's old password and newpassword and changes user's password.
New password should be at least 6 characters in length, contain at least 4 different characters, cannot be all consecutive characters (either alphabet or numbers, neither of the following is valid 'abcdef', '123456', '987654') and cannot be all consecutive letters from a standard keyboard (no 'qwerty' or 'poiuyt'). Also the password can not start or end with whitespace.
URL
https://api.pcloud.com/changepassword
Required
Parameter | Description |
oldpassword | string current password of the user |
newpassword | string the wished password that will overwrite the current |
Example
{ "result": 0 }
Code | Description |
1000 | Log in required. |
1031 | Please provide 'oldpassword'. |
1032 | Please provide 'newpassword'. |
2000 | Log in failed. |
2030 | New password is the same as the old one. |
2031 | Wrong 'oldpassword' provided. |
2032 | Password too short. Minimum length is 6 characters. |
2033 | Password can not start or end with space. |
2034 | Password does not contain enough different characters. The minimum is 4. |
2035 | Password can not contain only consecutive characters. |
4000 | Too many login tries from this IP address. |
5000 | Internal error. Try again later. |