Operations on CTERA API Objects > Creating Objects
Creating Objects
To create a new object in a collection, invoke the extended method add on the collection.
Create a CTERA Portal API object.
API
admin/api/object
URI
{BASE_URL}/object
HTTP Method
POST
Request Content-Type
application/xml
Request Body
The current portal object in XML format.
Expected Response status
200 OK
Object Method
add
Java Example
private static String createObject(HttpClient client, String url, String params) throws Exception {
  invokeMethod(client, url, "add", params);
}