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!

Parking domain with API1 -- domain not specified?

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

  1. smallfarmcentra

    smallfarmcentra Registered

    Joined:
    Jun 8, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    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:

    /xml-api/cpanel?cpanel_xmlapi_user=myuser&cpanel_xmlapi_module=Park&cpanel_xmlapi_func=park&cpanel_xmlapi_apiversion=1&args-0=parkthis.domain.com&args-1=park.ontopofthisdomain.com

    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

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    Location:
    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 subdomain.example.com). This is not a typical use of the parked domains function, hence the fine print.
     
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