Description

This function resets the branding package's HTML files.

 

Examples


https://hostname.example.com:2087/cpsess###########/json-api/cpanel?cpanel_jsonapi_user=user&cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Branding&cpanel_jsonapi_func=resethtml

$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Reset branding items.
$reset_items = $cpanel->api2(
    'Branding', 'resethtml'
 );

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Reset branding items.
my $reset_items = $cpliveapi->api2(
    'Branding', 'resethtml',
 );

 

cpapi2 --user=username Branding resethtml

{
  "cpanelresult": {
    "apiversion": 2,
    "func": "resethtml",
    "data": [
      {
        "file": "contactinfo_include.html"
      },
      {
        "file": "cpanel_parsed_css.html"
      },
      {
        "file": "cpanel_parsed_css_local.html"
      },
      {
        "file": "extended_statsbar.html"
      },
      {
        "file": "getstarted-pop.html"
      },
      {
        "file": "index.html"
      },
      {
        "file": "optionselect-pop.html"
      },
      {
        "file": "publiccontact_include.html"
      },
      {
        "file": "sprites.html"
      },
      {
        "file": "sprites_ui.html"
      },
      {
        "file": "sprites_yui.html"
      },
      {
        "file": "stdfooter.html"
      },
      {
        "file": "stdheader.html"
      },
      {
        "file": "stdmheader.html"
      },
      {
        "file": "supportinfo_include.html"
      },
      {
        "file": "webmaillogininclude.html"
      }
    ],
    "event": {
      "result": 1
    },
    "module": "Branding"
  }
} 

 

Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample

file

stringThe updated HTML file.An HTML file's name.contactinfo_include.html
resultBoolean

Whether the function succeeded.

  • 1 — The function succeeded.
  • 0 — The function failed.
1