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

HipChat API V2 get all rooms has max of 1000 returned. Is there a way around this? We have more than 1000 rooms.

My group that uses HipChat has over 1000 rooms. When use the get all rooms api for our bot to stay in all rooms instead of removing and re-adding the bot every day. This only applies to our first 1000 rooms created though. Now we have more and the stay command we use for our bot is useless. Has anyone found a work around for this problem?

1 answer

1 accepted

6 votes
Answer accepted

Hi Alexander,

That's correct, 1000 is the maximum number of results you can retrieve with a single request. But you can still make multiple requests using the start-index param to get the next set of results:

  • To get the first 1000 rooms, set max-results = 1000 and start-index = 0
  • To get the next 1000 rooms (from 1000 to 2000), set max-results = 1000 and start-index = 1000 

Hope this helps! More info on https://www.hipchat.com/docs/apiv2/method/get_all_rooms

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Hipchat Cloud

Hipchat Cloud and Stride have reached End of Life (updated)

All good things come to an end - thanks to all our customers and partners who have been along the Hipchat and Stride journey with us.  As of Feb 15th 2019, Hipchat Cloud and Stride have reached ...

33,611 views 7 8
Read article

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