Update cPanel & WHM update frequency

This function sets the frequency of cPanel & WHM updates.

Authorizations:
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

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  set_cpanel_updates \
  updates='daily'

Response samples

Content type
application/json
{
  • "data": {
    • "updates": "daily"
    },
  • "metadata": {
    • "command": "set_cpanel_updates",
    • "reason": "Cpanel update frequency set to daily",
    • "result": 1,
    • "version": 1
    }
}