Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

REST space API depth=root not working

Alex Danilenko September 19, 2014

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.

2 answers

0 votes
cgauterio
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2014

Hi Alex,

I just replicated that, so I created a bug report for it: https://jira.atlassian.com/browse/CRA-479

Please add yourself as a watcher to be notified of future updates.

Cheers,
Clarissa.

 

0 votes
Rick Frey December 1, 2014

Can't help, but I'm running into the same problem with Confluence 5.5.6 :/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events