Managing Virtual Portals > Creating a Team Portal
Creating a Team Portal
This procedure is applicable to the global administration portal only.
Create a team portal.
API
admin/api/teamPortals
URI
{BASE_URL}/teamPortals
HTTP Method
POST
Request Content-Type
application/xml
Request Body
The TeamPortal 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 TeamPortal 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 Team Portal
String xml = toString(new FileInputStream(new File("Portal.xml")));
String res = invokeMethod(httpClient, baseUrl+ "/teamPortals ", "add", xml);