Forums

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

How to get the content state of all version of a page.

ssam February 13, 2025

I am tagging page with status( In-Progress/Ready for Review/Rough-Draft/Verified) when ever I am updating the page.

So now I am looking for an api or way to get the earlier version content state. For eg if I made changes from Rough-Draft -> Verified. 

I found a API to get the current version content state using this API 

{{instanceurl}}/rest/api/content/{{page-id}}/state.

 

However am looking for a way to get the earlier version state like as per above transition , API to find the content state Rough-Draft 

1 answer

0 votes
Mirek
Community Champion
February 28, 2025

Hi @ssam 

I am not aware of direct way in API that gives you the state directly for all versions. I think you have to rely somehow on version history

{{instanceurl}}/rest/api/content/{{page-id}}/version

This would give you all the information about the versions, so now somehow would be good to fetch this and get to specific content 

{{instanceurl}}/rest/api/content/{{page-id}}?version={{version-number}}

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events