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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Parking domain with API1 -- domain not specified?

Discussion in 'cPanel Developers' started by smallfarmcentra, Jun 8, 2009.

  1. smallfarmcentra

    smallfarmcentra Registered

    Jun 8, 2009
    Likes Received:
    Trophy Points:
    I am attempting to use the API to park domains on top of a single domain via the API1. I can connect to WHM correctly, it seems. This is the request I am sending:


    I get the following response from WHM:
    <?xml version="1.0" ?> <cpanelresult><module>Park</module><func>park</func><type>event</type><source>module</source><apiversion>1</apiversion><data><result>domain not specified</result></data></cpanelresult>

    So, how do I tell WHM which domain I would like to park and which domain I would like to park on top of? I can't find any specific documentation on this after many google & forum searches.
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Just like the cPanel interface, you can only park on top of the main domain for the cPanel account*. As a result, there's only 1 argument*, the domain you wish to park.

    Also, try using arg-0 instead of args-0. This was an inaccuracy in our documentation that is being corrected as I post this message.

    * Technically, there is a kludge you can use to park a domain on top of a subdomain of the account's primary domain. This involves passing a second argument containing just the subdomain name (e.g. subdomain for This is not a typical use of the parked domains function, hence the fine print.

Share This Page