Delete Group

This request is used to delete a group.

HTTP Request

URLMethodDescription<groupId> DELETE DELETE Group

Path Variables

This call uses a path variable with the actual value of the group id to be deleted.

"groupId" The value of this path variable is used as a string representing the numeric value of the group's id.

Sample Request


##Retrieving the XSRF Token needed for Session
pingResponse = my_session.get("")

#Import the X-XSRF-Token returned from RememberMeController/ping into the request headers
xsrfToken = pingResponse.headers.get("X-XSRF-TOKEN")

#HTTP request header
header = {"Content-Type" : "application/json", "X-XSRF-TOKEN" : xsrfToken}
#delete group with id:5
response = my_session.delete(group_url, headers=header).json()

Sample Response

the key “outcome” returns the string “OK” when the request is performed with success and the selected group is deleted.



In case of error, the "outcome" is either "null" or "Error" and the "id" returns a string with the description of the error.

For example, if the selected group does not exist, the response will be the following:

Back to Top