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

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