Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I get attachment data via REST API?

Jonathan Simonoff
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 24, 2015

XML/RPC has a getAttachmentData method.  Is there a way to do the same thing using the REST API?  I see endpoints for getting lists of attachments and PUTting attachment data, but is there one to GET the data?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Andreas Ebert
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2015

You don't need a REST resource for getting the actual attachment data. Just use the attachment's URL as you would in JIRA's front-end.

The attachment URL is available through:

0 votes
Kai Henning January 3, 2016

Helle Andreas,

I'm developing a web application with Java. The server for the web application and the Confluence server runs on different machines in different domains.

I want to receive the contents of an attachment in binary form, using the REST API. I use Confluence 5.9. In the documentation of the REST API I have no matching information found. Is there such a possibility?

Unfortunately, your answer does not help, because it was asked for a solution to Confluence. Not for JIRA. Or can I use the JIRA REST API for Confluence?

Mahesh Pawar January 22, 2018

Hey Helle,

have you found any solution or endpoint for downloading attachment from Confluence?

a b July 8, 2018

i am looking for any solution or rest api endpoint do download file also.

Like Kseniya Krylova likes this
faris khan April 23, 2019

Hi,

 

Is there any solution to this? the Content URL in the attachment entry is not going through via Oauth token... what is the work around?

TAGS
AUG Leaders

Atlassian Community Events