I’m trying to create a forge app will needs to be able to query all spaces within Confluence, ideally with the ability to filter by space name and type (e.g. personal/global)
The deprecated /wiki/rest/api/search
looks like it might have been able to do it, although the cql type=space
doesn’t really seem to work properly, it’s also not documented so I presume it is not meant to. Also the endpoint is due to be removed at the end of the year so I don’t really want to start using it.
There doesn’t seem to be anything in the new v2 rest API to search spaces in any way, just to list them all.
I had a go with GraphQL, using findSpaces
query, which supports filter by space type, but unfortunately not by name. Does anyone know if there are any plans to make space name a filter option for findSpaces
or if there is another way of searching by space name in some other endpoint?
Thanks!