Forums

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

Fetching history of a page in Confluence using get history or get version Rest API call

Krishna Chaitanya M March 21, 2019

when i try to fetch history of a page that has 100s of revisions, i am only getting the latest revision.

tried both with version and history. We are using title to identify the page instead of page number.

Any idea how to get all the revision history through rest API call?

 

Instead of above I am using page title

http://example.com/rest/api/content?spaceKey=TST&title=Cheese&expand=version 

http://example.com/rest/api/content?spaceKey=TST&title=Cheese&expand=history

 

Please suggest

 

KC

 

 

1 answer

1 accepted

0 votes
Answer accepted
Diego
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 27, 2019

Hello there!

Using the expand=version will bring up only the latest version. The REST call we want to use is something like this:

http://instanceurl.com:8090/rest/experimental/content/<pageID>/version?expand=content

With this you will need use the pageID instead of the name+spaceKey combo. This will return to you information about all page versions.

You can check more information about REST here:

Confluence REST API Documentation

Looking forward to your reply!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events