Server Administration
Updates
Start cPanel & WHM update
This function starts an update of cPanel & WHM.
get/start_cpanel_update
Query parameters
mode'force' | 'sync' nullable
Example:force
The cPanel & WHM update’s mode of operation.
- null — Only reinstall cPanel & WHM if a newer version is available.
- force — Force a reinstall of cPanel & WHM, even if the system is up to date.
- sync — Update the currently-installed version of cPanel & WHM instead of downloading a newer version. This ensures the current version installed has the correct files.
Response
HTTP Request was successful.
Example response
{
"data": {
"is_new": 1,
"log_path": "/var/cpanel/updatelogs/update.1604521159.log",
"pid": 23456
},
"metadata": {
"command": "start_cpanel_update",
"reason": "OK",
"result": 1,
"version": 1
}
}