Users
Account Management
Update cPanel account password
This function updates the cPanel account's password.
get/Users/change_password
Query parameters
newpassstring password required
Example:MyNewPassw0rd!
The new password.
oldpassstring password required
Example:ThisWasMyPassword!
The current password.
enabledigest0 | 1
Whether to use Digest Authentication.
- 1 - Use Digest Auth.
- 0 - Do not use Digest Auth.
Note:
- Windows® Vista, Windows® 7, Windows® 8, and Windows® 10 require that you use Digest Authentication in order to access your Web Disk over a clear text, unencrypted connection.
enablemysql0 | 1
Whether to update the cPanel account's MySQL password.
- 1 - Update MySQL password.
- 0 - Do not update MySQL password.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "change_password",
"module": "Users",
"result": {
"status": 1
}
}