I tried to download the attachment using but its giving 401
https://api.atlassian.com/ex/confluence/{cloudId}/rest/api/download/attachments/684556356/Screen%20Shot%202019-10-11%20at%203.19.28%20PM.png?version=1&modificationDate=157787674135&cacheVersion=1&api=v2
Is there any solution to solve this issue?
Please explain how you attempted to download this attachment.
What are the steps to reproduce your situation?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David at David Simpson Apps
I want to do it programmatically , I tried to hit this API/request from the postman with Oauth 2.0 3LO access token.
Step 1:
I hit this API : https://api.atlassian.com/ex/confluence/{cloudId}/rest/api/content/{pageId}?expand=children.comment,children.attachment
received `downloadUrl` : `download/attachments/684556356/Screen%20Shot%202019-10-11%20at%203.19.28%20PM.png?version=1&modificationDate=157787674135&cacheVersion=1&api=v2`
and tried hitting this received url with postman using Oauth 2.0 access token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just want to know the API for downloading attachments using API and Oauth2.0 3LO access token.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David at David Simpson Apps
I tried doing it using API (using Postman)
to reproduce follow these steps
1. Get attachments for given page id
API that I used: `https://api.atlassian.com/ex/confluence/{cloudId}/rest/api/content/{pageId}?expand=children.comment,children.attachment`
2. received download url in API response as : `download/attachments/684556356/Screen%20Shot%202019-10-11%20at%203.19.28%20PM.png?version=1&modificationDate=157787674135&cacheVersion=1&api=v2`
Tried to this with Oauth 2.0 3LO access token.
but received 401
what would be the base Url
I tried using : https://api.atlassian.com/ex/confluence/{cloudId}/rest/api/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried hitting this request on postman with Oauth 2.0 3LO access token
1. sent API request for get page attachment
2. received download url in response
3. tried to hit this using Oauth 2.0 access token
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Request for getting page attachment :
https://api.atlassian.com/ex/confluence/{cloudId}/rest/api/content/{pageId}?expand=children.comment,children.attachment
received download url in response
tried to hit that using `https://api.atlassian.com/ex/confluence/{cloudId}/rest/api` as base url
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Anuja Deshpande did you find any solution for that?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.