Save the server's custom style

This function saves the server's custom style. You can retrieve the custom style through WHM API 1's load_style function.

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
company_name
string

The company name.

Example: company_name=Example Corporation
documentation_url
string <url>

The reseller's documentation URL.

Example: documentation_url=http://example.com/documentation/
help_url
string <url>

The reseller's help URL.

Example: help_url=http://example.com/help/
Responses
200

HTTP Request was successful.

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