Get list of all versions of files or pages using api

Mahesh_Kumar_Yadav February 25, 2020

I have the lastest Confluence Server and want to get the list of all versions as any page or attachments are updated. I tried but I didn't get any API to get all versions. Please help me.

I have 5 versions of a page, I want to list out all versions of this page.

1 answer

1 accepted

0 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.
February 25, 2020

Hi @Mahesh_Kumar_Yadav 

This is a tricky one. The official API does not seem to offer this possibility. The only thing I found was: https://docs.atlassian.com/ConfluenceServer/rest/7.2.0/#api/content-getHistory

But, I searched the community and found this post.

You can try this: 

<server>/rest/experimental/content/<page_id>/version?expand=content 

As described, it is experimental and I don't know if this will ever become official.

Regards, Dominic

Mahesh_Kumar_Yadav May 3, 2020

Thank you very much @Dominic Lagger , It's working fine.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events