Hello dear reader,
I hope you are well and safe
I am trying to add a note to a ticket with an attachment in Powershell but I always receive a 400 HTTP code (bad request)
I’ve already used a lot FreshService’s API and I always managed to make it work (adding note without attachment, creating service requests...).
But this time, attachments are really making me struggling a lot.
I’ve never send an attachment through an API (FreshService or something else) in any programming languages.
I’ve some problem understanding what should I send (type of object ?, path of the file ?, bytesof the files ?) in the body so FreshService’s API can recognize my file and I even tried to achieve that with other method (such as cURL) but I always failed.
If you have any tips or PowerShell code sample to help me, it would be very cool from you
Have a great day and stay safe
Best answer by sanofar.allahpichaiView original