Managing Virtual Portals > Creating a Reseller Portal
Creating a Reseller Portal
This procedure is applicable to the global administration portal only.
Create a reseller portal.
API
admin/api/resellerPortals
URI
{BASE_URL}/resellerPortals
HTTP Method
POST
Request Content-Type
application/xml
Request Body
The ResellerPortal object in XML format.
Expected Response status
200 OK
Object Method
add
Java Example
To create a new reseller portal based on the XML-encoded ResellerPortal object stored in the file Portal.xml, use the following:
// switch to the Global Administration Portal
putObject(httpClient, baseUrl+ "/currentPortal", "<val></val>");
 
// create the new Reseller Portal
String xml = toString(new FileInputStream(new File("Portal.xml")));
String res = invokeMethod(httpClient, baseUrl+ "/resellerPortals ", "add", xml);