Hello everybody.
I want to retreive a pages tree from confluence by it's REST API: https://docs.atlassian.com/atlassian-confluence/REST/latest/
We have this command there:
/rest/api/space/{spaceKey}/content/{type}
Parameters:
depth
string
Default: all
a string indicating if all content, or just the root content of the space is returned. Default value: all. Valid values: all, root.
But, when I try it, i'm getting a server error:
https://my.atlassian.net/wiki/rest/api/space/INTRANET/content/page?depth=root
{"statusCode":500,"message":"java.lang.IllegalArgumentException: Unrecognised Depth string: ROOT"}
With depth=all everything is OK.
What am I doing wrong? Is it a bug? Is there another method to get the root of pages tree?
Thanks.