It appears that the ability to use the API to obtain a previous version of a Confluence page content has been broken. I have been trying every possible way for the last few days. I have followed what has been suggested here, two years back:
but it does not work. And I have tried is the the {id}/version/{version} syntax as well. I always get "Not found" - even though I can pull it up in a browser using the same URL.
I am using the exact same syntax to get the latest version:
const curVersPageResponse = await api.asApp().requestConfluence( route`/wiki${curContentRoute}`, {
headers: {
'Accept': 'application/json'
}
});
but when I append
/version/{version}
or
?status=historical&version=${prevVersion}
it does not work.