Save default cPanel style

This function sets the default cPanel style.

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

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  set_default \
  type='default' \
  name='basic'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "set_default",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}