i am having some trouble uploading and add an attachment to a ticket in Zendesk:
my problem is that: the process work without problem but when i try to open the file in zendesk it return me an error loading
My question is: can i upload a file by an http url? cause in the official documentation it add only local files
The process is the following: I receive an input like this [ { "size": 49890, "attachment content": "https://test.atlassian.net/rest/api/2/attachment/content/10126", "filename": "Screenshot 2022-11-29 at 13.49.01.png", "author": "CPS", "mimeType": "image/png" } ]
and i use this HTTP request for make the call: Endpoint: /api/v2/uploads.json?
Header:
Content-Type mimeType
--data-binary attachment content
and after i make another HTTP request: endpoint: /api/v2/tickets/idticket
body {"ticket": {"comment": {"body": "Attachment:","uploads": ["{{$json["token"]}}"]}}}
You'll want to make sure the Content-Type is set to application/binary for external source file uploads. Also, could you try opening the attachment in Zendesk into a new tab?
Please let me know if you're able to do so, this will better help me to troubleshoot the issue you're having.
Best,
Erica