You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi, please help download attachment.
I try using the api:
Steps:
1. I get list of attachments by
https:/<my_server>/wiki/rest/api/content/{contentId}/child/attachment
2. get {"_links": {"download"://download/attachments/{attach_id}/test_file.pdf?version=1&modificationDate=1569048258206&cacheVersion=1&api=v2}}
3. call
https://<mu_server>/download/attachments/{contentId}/test_file.pdf?version=1&modificationDate=1569048258206&cacheVersion=1&api=v2&os_authType=basic
with header Authorization Basic <my_token>
as result I get 404
Please tell me where I mistaken?
Thanks.
Best Regards, Dmitry.
@Dmitriy.Bochkanovare you using /wiki in download url?
i.e.
https://<my_server>/wiki/download/attachments/{contentId}/test_file.pdf?version=1&modificationDate=1569048258206&cacheVersion=1&api=v2&os_authType=basic
with header Authorization Basic <my_token>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dmitriy.BochkanovActually on Confluence Cloud, the base url contains context path of /wiki so it is not exactly an error, but Atlassian have not mentioned it clearly anywhere.
If this response helped you, you can accept and like the answer so that we can help other.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,i Have same problem. I am able to downoad with http link as below:
https://<my server>/confluence/download/attachments/774646522/Forecast.xlsm?version=1&modificationDate=1605691521000&api=v2
This link is working on browser. But when i request through python request module, it is not downloading file, even it returns status as 200.
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.
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.