Hi,
is there an api to directly download all attachments from a confluence page?
Hi,
is there an api to directly download all attachments from a confluence page?
Can you check if this API returns what you need? https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-attachment/#api-pages-id-attachments-get
The downloadLink
property in the response should contain a relative path to add to the Confluence base URL to retrieve the attachment data.
e.g. "downloadLink":"/download/attachments/2919172468/attach.txt?...
which would be added to your-site.atlassian.net/wiki
hi @HughWu I have checked this link is not working
please help it was giving 404 error
after this since i am using oauth 2.0 3LO
i tried this link also https://api.atlassian.com/ex/confluence/{cloud_id}/downloadLink
still it was giving me a 401 error like this :
HTTP error occurred: 401 Client Error: Unauthorized for url: https://api.atlassian.com/ex/confluence/7be77db7-eb3e-4b1a-a8d3-11caca18ea18//download/attachments/2588673/Page.pdf?version=1&modificationDate=1724825357358&cacheVersion=1&api=v2 - {“code”:401,“message”:“Unauthorized; scope does not match”}
and i have made sure that i have given all the scopes permisiions and also my access_token is correct