Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    1

    Default Parking domain with API1 -- domain not specified?

    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. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by smallfarmcentra View Post
    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.
    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.

Similar Threads & Tags
Similar threads

  1. Park Domain and add Mail Parking to existing domain
    By hostmedic in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 06-10-2011, 06:02 AM
  2. parking a domain and creating e-mail domain forwarder at the same time?
    By frkandris in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 08-13-2008, 12:11 PM
  3. Help Parking A Domain
    By majicman in forum New User Questions
    Replies: 0
    Last Post: 07-06-2008, 11:18 PM
  4. what's the difference between domain parking and domain pointing?
    By matt621 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-29-2003, 09:16 PM
  5. Domain pointer and Domain Parking
    By Radio_Head in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-22-2002, 04:55 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube