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

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

Alexander Arnold June 15, 2016

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
Jeison
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 15, 2016

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
TAGS
AUG Leaders

Atlassian Community Events