[ContactAPI] Hard delete fails with bad request

  • 20 September 2018
  • 0 replies
  • 17 views

  • Apprentice
  • 0 replies

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)
...

    



This topic has been closed for comments