跳到主要内容

getRoomGroups

RoomGroupArrayWrapper getRoomGroups(includeMembers, searchArea)

GET /api/2.0/files/group

List room groups

Returns every room group of the calling account, each with the rooms it gathers. Only groups the caller created are listed: groups of other members never appear here, and an account that has never made one gets an empty array back. Set includeMembers to false to leave the rooms array out of every entry and keep the name, the icon and totalRooms alone, which is the cheaper form when the list is only being shown as a menu. Archived rooms are skipped in both the rooms array and the totalRooms count, and reappear once the room is taken out of the archive. The listing is neither paged nor filtered - it always carries the whole set - and the order of the entries is not contractual, so sort them on the client when the order matters. The call is read-only. Use GET api/2.0/files/group/{id} when the identifier of a single group is already known, and POST api/2.0/files/group to add one.

Parameters​

NameInTypeDescriptionNotes
includeMembersqueryBooleanWhether the rooms of each group are listed in the answer: true fills the rooms array of every entry, false leaves it out and reports only how many there are in totalRooms.[optional] [example: true]
searchAreaquerySearchAreaThe section to list the groups of: Active for Rooms and Forms for Forms. Active when omitted.[optional] [example: Active] [enum: Active, Archive, Any, RecentByLinks, Templates, Knowledge, ResultStorage, AiAgents, Forms, FormTemplates]

Responses​

Status codeDescriptionTypeResponse headers
200The room groups of the calling accountRoomGroupArrayWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400The searchArea names a section other than Active and Forms--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

RoomGroupArrayWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json