In our integration with PipeDrive, we’ve handled attempts at doing a PUT on a (soft) deleted organization by handling the 400 BadRequest response and retrieving the organization to see if it’s active_flag is false to know if it has been soft-deleted.
I’ve just discovered that these suddenly return 410 Gone instead. Am I misremembering or has this changed?
Also, I have customers who say they’ve deleted organizations and those requests now return 404 Not Found, but I can’t seem to delete organizations that way myself. How do you do that?
On our own organizations, some of our Organizations return 400 Bad Request when trying to update them after they get deleted, but with others it gives 410/404.
I don’t understand @EmilBM, you should be receiving 400 Bad Request if the Organization is deleted. For examples where you receive a different error, those are the anomalies.
I can see that if I add active_flag like this:
{
“id”: 4845,
“name”: “Some Name”,
“active_flag”: false
}
I can get it to return 410. Whats the logic? The reason here is that whenever I try to put on a pipedrive item that has been deleted, I´ll get 400 Bad Request and will have to do a get request to check its active_flag state to see if its deleted or my request is bad. Thats pretty silly.