Save default cPanel style

This function sets the default cPanel style for the Paper Lantern theme ONLY.

Important:

This function only works in the Paper Lantern theme. We deprecated Paper Lantern in cPanel & WHM version 100 and will remove this function in version 110. This function will not work in the Jupiter theme.

SecurityBasicAuth
Request
query Parameters
name
required
string

The style's name.

  • glass — The default Paper Lantern style.
  • basic — The Paper Lantern Basic style.
  • retro — The Paper Lantern Retro style.
  • Another style name on the server.
Enum: "glass" "basic" "retro" "Another style name on the server."
Example: name=basic
type
required
string

The style's type.

  • default — The default style for cPanel accounts on the server.
  • global — For all of the cPanel accounts on the server.
  • reseller — For all cPanel accounts that a reseller owns.
  • user — For a specific cPanel account.
Enum: "default" "global" "reseller" "user"
Example: type=default
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/set_default
Request samples
whmapi1 --output=jsonpretty \
  set_default \
  type='default' \
  name='basic'
Response samples
application/json
{
  • "metadata": {
    • "command": "set_default",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}