Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

xmlapi

Discussion in 'cPanel Developers' started by scwhite, Feb 12, 2016.

  1. scwhite

    scwhite Registered

    Joined:
    Aug 6, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I cannot find the api function to add a cpanel account to whm. I used this to add a non-cpanel addon domains to another specific cpanel domain but I cannot figure out how to add a new cpanel account to the roor WHM :

    $results=print $xmlapi->api2_query('cpanelusernm', "AddonDomain", "addaddondomain", array(newdomain=>$domain, dir=>"public_html/" . domain . ".com", subdomain=>$domain, pass=>"abc123!#") );
     
  2. cPDavidN

    cPDavidN cPanel Developer
    Staff Member

    Joined:
    Mar 19, 2013
    Messages:
    42
    Likes Received:
    3
    Trophy Points:
    83
    cPanel Access Level:
    DataCenter Provider
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice