This function updates the cPanel account's password.
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
}
}