Description

This function saves the server's custom style.

 You can retrieve the custom style through WHM's Customization  interface (Home >> cPanel >> Customization) or with WHM API 1's  load_style function.

  • In cPanel & WHM version 58 to 11.48, WHM's Customization interface (Home >> cPanel >> Customization) was the Branding interface (Home >> cPanel >> Branding).
  • In cPanel & WHM version 11.48 and earlier, WHM's Branding interface (Home >> cPanel >> Branding) was the Customize Paper Lantern interface (Home >> cPanel >> Customize Paper Lantern). 


Examples 




https://hostname.example.com:2087/cpsess##########/json-api/save_style?api.version=1&company_name=Example%20Corporation&documentation_url=http%3A%2F%2Fexample.com%2Fdocumentation%2F&help_url=http%3A%2F%2Fexample.com%2Fhelp%2F




https://hostname.example.com:2087/cpsess##########/xml-api/save_style?api.version=1&company_name=Example%20Corporation&documentation_url=http%3A%2F%2Fexample.com%2Fdocumentation%2F&help_url=http%3A%2F%2Fexample.com%2Fhelp%2F




whmapi1 save_style company_name="Example Corporation" documentation_url=http%3A%2F%2Fexample.com%2Fdocumentation%2F help_url=http%3A%2F%2Fexample.com%2Fhelp%2F



{
  "metadata": {
    "version": 1,
    "reason": "OK",
    "result": 1,
    "command": "save_style"
  }
}




<result>
    <metadata>
        <version>1</version>
        <reason>OK</reason>
        <result>1</result>
        <command>save_style</command>
    </metadata>
</result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
company_name
stringThe company name.A valid string.Example Corporation
documentation_urlstringThe reseller's documentation URL.A valid URL.http://example.com/documentation/
help_urlstringThe reseller's help URL.A valid URL.http://example.com/help/

Returns

This function only returns metadata.