API - Delete Group By ID

Delete Group By ID

This API is used to delete group by specifying the group ID. 
Multiple groups can be deleted by specifying the IDs as shown in the code snippet below. 

API Details

Signature of API call:

connection.invokeApi(String uri, String realUserName, Map<String, String> requestParameters);


Parameter 1 - URI:



Parameter 2 - UserName:

Username of the user (for my groups) and site admin(for site groups)


Parameter 3 - Request Parameters:

Name Value
dispatch deleteGroupsByIds
xml true
groupId<Num> Group ID to be deleted



Response on successfully getting the event list

HTTP Response Code: HttpServletResponse.SC_OK

Response XML:

<response code="0">
            <![CDATA[Group(s) deleted successfully]]>


Code Snippet:

/* Check API Call for detail */

Map<String, String> parameters = new HashMap<String, String>();
parameters.put("dispatch", "deleteGroupsByIds");
parameters.put("xml", String.valueOf(true));
parameters.put("groupId0", "<Group 1 ID>");
parameters.put("groupId1", "<Group 2 ID>");
parameters.put("groupId2", "<Group 3 ID>");
String result = connection.invokeApi("groupService.do", "adminusername", parameters);