Delete Group

This request is used to delete a group.

HTTP Request

URLMethodDescription
https://app.tellody.com/CampaignCloud/Group/<groupId> DELETE DELETE Group

Path Variables

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

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

Sample Request

PythonOther

##Retrieving the XSRF Token needed for Session
pingResponse = my_session.get("https://app.tellody.com/CampaignCloud/RememberMeController/ping")

#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
groupId="5"
group_url="http://www.tellody.com/CampaignCloud/Group/"+groupId
response = my_session.delete(group_url, headers=header).json()
print(json.dumps(response,ensure_ascii=False))

Sample Response

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

{
   "data":null,
   "outcome":"OK",
   "id":null
}

Errors

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:

{
   "data":null,
   "outcome":"null",
   "id":null
}
Back to Top