v1

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

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": "Users",
  "result": {
    "status": 1
  }
}