Hey all, I'm trying to use the Tickets API to include attachments. Long story short, we're using Microsoft Power Apps forms that create SharePoint List Items, which then create the ticket in Zendesk via the API. I'm having an issue with
Initially, I'm calling the Uploads API and am successfully getting the token back. In the 'Uploads' image I included you can see that the content-type and content is getting passed in for the token.
My final API call to the Tickets API looks as follows. When I go into Zendesk and view the ticket, I can see the filename as it should as an attachment, but when I click on the attachment to open it, I get "It appears that we don't support this file format". This particular attachment is an PNG, and we do support them.
Any thoughts? Thanks in Advance!







Are you by any chance linking to image hosted externally? I did some testing and I only seemed to see this issue come up when using an image hosted externally. When uploading from your local device or in this case sending the upload request pointing to the image file locally it returns the correct content-type. Also when creating the request and setting the content-type to application/binary instead, you'll be covering your bases regardless of the image file type.
Hope this helps!
Best,
Erica - Dev Support