this is for rest api v2 , this url will give the attachemenst
url = "https://{your-domain}/wiki/api/v2/pages/{id}/attachments"
but for rest api 1
we have this url = https://api.atlassian.com/ex/confluence/cloudid/rest/api/content/{page_id}/child/attachment' and getting all the attachements , since it is depricating , we need to move to rest api v2 , but I am geting the issue finding out the domian and I am using the acess token getting from Oauth2.0 for rest api 1 and it working and same I am using for rest api v2
url = "https://{your-domain}/wiki/api/v2/pages/{id}/attachments" , finding difficulties in what is the domain and how to get details from this rest api v2 url
HI @[deleted]
{{your-domain}} is your instance. E.g. Let's assume that we are working on Confluence https://greatcompany.atlassian.net and greatcompany.atlassian.net is {{your-domain}}.
Regards,
Seba
if we use Oauth2.0 token , then it is not working here
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.