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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.