How to fetch "View Change" in a Confluence page via an API

Cyrus Shemshadi April 11, 2023

In Confluence, "Get content history" API returns "lastUpdated" and "previousVersion". What I need is to get "View Change" content. Is there any API to get this value?
Thanks

1 answer

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2023

Hi @Cyrus Shemshadi and welcome to the community,

I'm not sure such endpoint exists. What you can do is to take this endpoint https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-version/#api-custom-content-custom-content-id-versions-get and compare the body of the version you want and then find the changes.

Cyrus Shemshadi May 23, 2023

Thank you Alex!

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2023

If that helped you, kindly mark my answer as accepted, in order to help others in the community with similar questions. Much appreciated!

Cyrus Shemshadi May 23, 2023

Dear Alex,
In your response, you suggested to use "Get version details for custom content version", and to compare the body of versions.
This is somehow what I could do with "Get content history". 
In both mentioned APIs, we have previous version and next version of page content as API outputs. Based on this, you 've suggested a similar solution to what I mentioned in my request. If I am wrong, I would be grateful if you would correct me.

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 23, 2023

@Cyrus Shemshadi I haven't done the comparison among versions, but the endpoint you suggested is consider deprecated. Despite that, the answer to your initial question of your post, is that there isn't unfortunately any other endpoint which return the changes of a page, as I stated on my first comment. With that said, I hope that another user will be able to provide a workaround for you.

Be well!

Cyrus Shemshadi May 23, 2023

Thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events