Hello Dev Community!! I am curious if anyone has found a way to remove the secondary_emails of a requester in Freshservice using the Freshservice API.
I have tried doing so in POSTMAN sending a PUT Request to the requesters endpoint. I pass an empty array to the field “secondary_emails” and it fails saying the value is of type Null and needs to be of type Array.
I have reported this to the product team, and the Freshservice team has confirmed it’s a bug. It is also assigned a high priority.
I will notify here upon improvements on the bug fix. We do not have any timeline for the fix.
Since we have not documented the particular case, I’m not sure what is the ideal expectation to do it. I will confirm the same after the issue is fixed.
For anyone else reading this, sending a PUT request where “secondary_emails” is an empty array now does clear all the secondary emails on a user account. Thanks Freshservice team!
Do you have any other tips to share around updating secondary emails? I noticed there’s no API method to remove them, so the only way is to get the existing list of secondary emails, remove them all, and then re-add an updated list omitting the secondary email(s) you want to remove.