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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change limit of expanded children (REST API)

I am fetching several levels of children through the REST API using the expand functionality, but I am unable to figure out how to change the limit of the number of children returned.  It is always 25, even if I raise the limit on the top level.  Is this possible?  If so what is the syntax?

 

The call I am making is rest/api/content/search?cql=id=111&limit=200&expand=children.page,children.page.children.page

6 answers

You probably need to provide more details on exactly which REST api you are using and with what arguments?

Good point @Robert Massaioli, updated my question to include the path that I am using.

Anybody found the answer to this?

Running into the same issue as Gary so I tried to call children directly attached to a page, with the hopes that the API would accept a limit on that call: 

 

/rest/api/content/14778915/child?expand=page.body.view&limit=250

I tried this and it works

/rest/api/content/9666655/child/page?limit=200

9666655 is a page with a lot of child.

The issue is when using the expand functionality on the search.  Using the child endpoint does not provide the same data.

Any help here, @Robert Massaioli (Atlassian) ?

I am also trying to use the Content API to get content. Any time you include some expands, the API ignores the Start and Limit parameters.

 

e.g. content/653690267?start=10&limit=25&expand=descendants.page

Firstly, there are a number of questions that are about the REST APIs. Usually, the best location to go to ask these questions are the Developer Community: https://community.developer.atlassian.com

As for the problems themselves, it seems that people are trying to iterate the children of a single piece of content using the REST APIs.

If you are:

If you can't successfully make those requests work then I would recommend either raising  thread on the Developer Community to seek help OR if you are confident that it is a bug (as per Gabriel's case) it would be a good idea to raise a bug against Confluence Cloud in jira.atlassian.com).

I hope this helps get everybody started in the right direction. Cheers!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

494 views 24 9
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you