Hello All!
I'm working on a project right now that requires me to upload some files to Zendesk via API, and then attach them to a ticket later on. I can create tickets and add comments to them, with no problem, but I'm struggling to get files to upload with the method Zendesk suggests. I am starting to wonder if this action in Power Automate Desktop is not capable of doing what I need it to do, and I'm curious if others have seen the same, or if anyone has suggestions.
For reference, the attachment procedure is outlined on this page: https://developer.zendesk.com/documentation/ticketing/using-the-zendesk-api/adding-ticket-attachments-with-the-api/
They say there's the option to do it from the command line, but I am not able to get this command to work in either PowerShell or CMD:
curl "[URL of Attachment]" \ --data-binary @img_0603.png \ -H "Content-Type: application/binary" \ -v -u jdoe@example.com/token:xpfRUSj51oGQta26nhRyaLaIBdhf \ -X POST
In PowerShell, the --data-binary section doesn't work and outputs the error:
"+ --data-binary @?img_0603.png \
+ ~
Missing expression after unary operator '--'.
Any help or suggestions would be appreciated, thank you!