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!

XML API - Change Main Domain Name?

Discussion in 'cPanel Developers' started by SomeoneX, Sep 4, 2009.

  1. SomeoneX

    SomeoneX Member

    Joined:
    Aug 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Hi,

    Is it possible to use WHM's XML-API to change an account's domain name?

    Thanks.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, you can use use modifyacct and in the domain parameter, specify the new domain name for that account.
     
  3. SomeoneX

    SomeoneX Member

    Joined:
    Aug 24, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    51
    Thanks :)

    I just realized that I need to pass all the variables (max sub, etc...) and not just the new domain :D
     
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