Operations on CTERA API Objects > Modifying Objects
Modifying Objects
Modify any CTERA Portal API object or attribute.
API
admin/api/object/member
URI
{BASE_URL}/object/member
HTTP Method
PUT
Request Content-Type
application/xml
Request Body
The current portal object in XML format.
Expected Response status
200 OK
Java Example
private static String putObject(HttpClient client, String fullURL, String xml) throws Exception {
  PutMethod method = new PutMethod(fullURL);
  method.setRequestEntity(new StringRequestEntity(xml, "text/xml", "UTF-8"));
  int statusCode = client.executeMethod(method);
  String result = new String(method.getResponseBody());
  if (statusCode != HttpServletResponse.SC_OK)
    throw new Exception(result);
}