Managing Virtual Portals > Adding an Addon to a Team Portal
Adding an Addon to a Team Portal
This procedure is applicable to the global administration portal only.
Add an addon to a team portal.
API
admin/api/teamPortals/portal_ID
URI
{BASE_URL}/teamPortals/portal_ID
HTTP Method
POST
Request Body
empty
Response Body
The AddonParam object in XML format.
Expected Response status
200 OK
Object Method
addAddon
Java Example
To add the addon 10GB to the portal portal1 and give it the external item ID 10001, use the following:
StringBuilder xml = new StringBuilder();
builder.append("<obj class=\"AddonParam\">");
builder.append("<att id=\"addon\"><val>10GB</val></att>");
builder.append("<att id=\" externalItemId \"><val>10001</val></att>");
builder.append("</obj>");
invokeMethod(httpClient, baseUrl+ "/teamPortals/portal1", "addAddon", xml.toString())