Forums

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

page history API for retrieving page _content_ seems to be broken, and for v2 nonexistent

Cliff Berg
Contributor
March 7, 2023

The page history API for retrieving page _content_ seems to be broken, and for v2 nonexistent.

1. The ability to programmatically (using the Forge API) to access a prior version of a page no longer works.

2. The ability to obtain the _content_ of a prior version of a page, even by entering the URL query in a browser, no longer works.

E.g., this does not work using Forge:

 

const vresp = awaitapi.asApp().requestConfluence(route`/wiki/rest/api/content/7208974/version/20??expand=body.storage`, {
headers: {
'Accept': 'application/json'
}
});
...
and neither of these work in a browser:
Old API:
(does not show the body.storage.value - i.e. the content of the page)
...
New API does not seem to have a way to retrieve page content for prior page versions. Docs are here:https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-get
So I tried this:
(produces page not found)

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events