Folks:
I am using the Freshdesk Python client. My server side code has to programmatically create a contact. I also want to support subsequent deletion of the contact. In my test code, when I do a soft delete of a contact, it works. However, if I do a hard delete, it fails with a 401 bad request. Any ideas on what I might be doing wrong? My code snippet is included below.
...
# Retrieve the FD contact id. It must be a number
contact_id = int(fd_ids)
# Permanent delete fails, so commenting it out
# result = self.client.contacts.permanently_delete_contact(contact_id)
self.client.contacts.soft_delete_contact(contact_id)
...