Delete Contact

This request is used to delete an existing contact.

HTTP Request

URLMethodDescription<subscriptionId> DELETE Delete Contact

Path Variables

The URL uses a path variable with the actual value of the contact's id to be deleted.

"subscriptionId" The value of this path variable is used as a string representing the numeric value of the contact'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 contact
response = my_session.delete(contact_url, headers=header).json()

Sample Response

The key “outcome” returns the string “OK”, when then the request is performed with success and the contact is deleted.



In case of error, the “outcome” returns the string “Error”and the attribute ‘id’ contains a string with the description of the error.

If the contact does not exist the “outcome” will return <strong>null</strong>

Back to Top