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?
Community moderators have prevented the ability to post new answers.
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:
fields
parameter to a value with contains attachments))fields -> attachment[] -> content
content
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Helle,
have you found any solution or endpoint for downloading attachment from Confluence?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.