We want to handle pages in our app differently depending on if they’ve been created with the old or new Confluence editor. We would need to get this information through the Confluence REST API. Does anyone know if this is possible?
You can use the API /wiki/rest/api/content/{content-id}?expand=metadata.properties.editor. If the value is ‘v2’, it’s the new editor. If it’s not present or ‘v1’, then it’s the old editor.
Cheers.
This works for created pages, but what if this is a new page (not yet saved) and you want to detect if v2 or v1 editor is used (we want macro editor to behave differently). How to do that?
Alex
This is how you can do this - /wiki/rest/api/content?status=draft&expand=metadata.properties.editor. You will get all the pages in draft status along with their editor info.
I am trying to retrieve the editor version using the v2 API.
So far it has proven futile. The properties of a page don’t have an editor key.
We are using Oauth and have to connect to the api using the /ex/ path
I was under the impression that v1 API can also work using that path, but its giving me 410 errors. I don’t know if v1 API has to be enabled on the server, or if it just comes along for the ride and is always available. I get mixed messages
This is what we’re trying:
https://api.atlassian.com/ex/confluence//wiki/rest/api/content/113541224?expand=metadata.properties.editor
But if you know the endpoints in v2 API to find the information please let us know.
This information is FAR too difficult to find