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
Accepted answer

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 Nov 14, 2018 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 ...

32,464 views 7 7
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you