Hi,
I am getting JSON Output of a Confluence Page via REST API using Page Id and Page Title. When using Page Title, JSON Output gives me page content, where as while using Page ID, it gives Entire Space output without the content of the Page ID that I have specified.
REST API calls are as below. Any idea, where am I going wrong?
REST API with Page ID supplied
https://confluencesite:9443/rest/api/content?pageId=76350029&spaceKey=CoRFlowB&expand=body.storage,metadata.labels
REST API with Page Title supplied
https://confluencesite:9443/rest/api/content?title=4th%20page%20with%20two%20reviewers&spaceKey=CoRFlowB&expand=body.storage,metadata.labels
Page Id of page 4th page with two reviewers is 76350029
Hi @Suresh Venkat
I hope you are well.
Checking the Confluence REST API reference guide, the GET /rest/api/content method doesn't expect a pageid.
To get page information using the ID, then you should use GET /rest/api/content/{id} .
I hope that helps.
Kind regards,
Thiago Masutti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.