I have a Confluence wiki with over 1000 spaces. I try to retrieve the list of spaces of my Confluence wiki using the curl query:
curl -D- -u user:password -X GET \-H "Content-Type: application/json" https://[hostname]/rest/api/space
It returns an empty list of spaces:
{"results":[],"start":0,"limit":25,"size":0,"_links":{"self":https://[hostname]rest/api/space,"e":https://[hostname],"context":""}}
What could be the issue?
Hi @Franck Dernoncourt . You request is correct. Did you check the permissions for your user with credentials "user:password"? Has he access to any space?
Thanks very much, you're correct, this was a permission issue indeed!
It looks like you're new here. Sign in or register to get started.