The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Service Desk: download attachment via REST API

Julian Hundeloh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 29, 2019

I would like to download the attachments that are provided the Service Desk REST API. Retrieving metadata is not the issue but as soon as I try to download the file (via the link in content or thumbnail property) with the OAuth token I see the log in page instead. Currently, the links have the following format: https://SITE.atlassian.net/servicedesk/customershim/secure/attachment/10000/Screenshot.png?fromIssue=10010

Any idea how I can download the attachments instead?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
brbojorque
Community Champion
December 29, 2019

Hi @Julian Hundeloh ,

I tried to do it in my end and it works.

Whatever authentication you've used in retrieving the metadata should also need to be used to download the attachment contents.

Protip:

Use basic authentication and test it first in Python or Postman.

https://-.atlassian.net/servicedesk/customershim/secure/attachment/10000/Capture0.png?fromIssue=10000