Parking domain with API1 -- domain not specified?

smallfarmcentra

Registered
Jun 8, 2009
1
0
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.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
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.