Hi Freshworks community.
I am currently in the midst of updating my company’s offboarding powershell script, and I would like to have the script create a private note with an attachment of the report the script makes, when the user has been offboarded.
I have tried to follow multiple different ways both from the API documentation and from here/stackoverflow but haven’t been able to make it work.
I always end up getting either an Error 400 or Error 500 when I try to use the code.
I have been using the content-type multipart/form-data, and tried with both Invoke-WebRequest and Invoke-RestMethod to no prevail.