Update cPanel & WHM update frequency

This function sets the frequency of cPanel & WHM updates.

SecurityBasicAuth
Request
query Parameters
updates
required
string

The frequency with which to run cPanel & WHM updates on a server.

  • daily — Run updates daily.
  • manual — Run updates manually.
  • never — Never run updates.
Enum: "daily" "manual" "never"
Example: updates=daily
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/set_cpanel_updates
Request samples
whmapi1 --output=jsonpretty \
  set_cpanel_updates \
  updates='daily'
Response samples
application/json
{
  • "data": {
    • "updates": "daily"
    },
  • "metadata": {
    • "command": "set_cpanel_updates",
    • "reason": "Cpanel update frequency set to daily",
    • "result": 1,
    • "version": 1
    }
}