Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence API Link

Benjamin Meier April 21, 2020

Hello,

 

for university i need to create a short presentation about Confluence, focused on the API.

For this I need a to provide a sample API request on my Confluence instance.

I am using Postman to send requests. 

I've read this article: https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/ and tried sending the following:

GET https://<<my Confluence>>.atlassian.net:8080/confluence/rest/api/131664/child/attachment

in order to read the attachements of this page. (<<my Confluence>> is the name I gave my page.)

However, Postman returns "Could not get any response".

Is there something I am doing fundamentally wrong?

Unfortunately I don't have any experience with APIs so any help would be greatly appreciated.

Thank you and have a nice day

1 answer

1 accepted

2 votes
Answer accepted
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2020

Hi @Benjamin Meier 

I think the example in your documentation is outdated. 

Check the official REST API for Cloud. There, you can find the API for getting attachments

GET /wiki/rest/api/content/{id}/child/attachment

For your instance:

https://<<my Confluence>>.atlassian.net/wiki/rest/api/content/131664/child/attachment

Hope this helped

Regards, Dominic

Benjamin Meier April 21, 2020

Thanks a lot for your answer and the provided links.

Like Dominic Lagger likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events