v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
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

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.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "change_password",
  "module": "UserManager",
  "result": {
    "status": 1
  }
}