UserManager
Account Management
Update cPanel account password (User Manager)
This function updates the password of the main cPanel account, from the User Manager interface. It applies to the account owner only.
get/UserManager/change_password
Request
- Base URLhttps://cpanel-server.tld:2083/execute
- AuthHTTP basic
Query parameters
newpassstring password required
Example:MyNewPassw0rd!
The new password.
oldpassstring password required
Example:ThisWasMyPassword!
The current password.
enablemysql0 | 1
Whether to update the cPanel account's MySQL password.
- 1 - Update MySQL password.
- 0 - Do not update MySQL passowrd.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "change_password",
"module": "UserManager",
"result": {
"status": 1
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.