This function updates the cPanel account's password.
newpass required | string The new password. Example: |
oldpass required | string The current password. Example: |
enablemysq | integer Default: Whether to update the cPanel account's MySQL password.
Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ UserManager \ change_password \ oldpass='MyPreviousPassword' \ newpass='MyUpdatedPassword'
{- "apiversion": 3,
- "func": "change_password",
- "module": "UserManager",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}