Description
The following documentation specifies that the /api/v1/livechat/rooms
endpoint should accept a list of agents. However, while we can query a single agent ID/username, our team has not been able to successfully pass a list of agents.
(developer-docs/livechat-rooms-list.md at master · RocketChat/developer-docs · GitHub)
Server Setup Information
- Version of Rocket.Chat Server: latest
- Operating System: ubuntu:16.04
- Deployment Method: docker/k8s
- Number of Running Instances: 10
- DB Replicaset Oplog: –
- NodeJS Version: 12.22.1-buster-slim
- MongoDB Version: 7.11.1
- Proxy: nginx
- Firewalls involved: –
Any additional Information
We have tried the following syntaxes (please note that the formatting of this forum is changing [ and ] to a in the display of this post):
/api/v1/livechat/rooms?open=true&agents=spam-agent,jamesbecker&sort={%22lm%22:1}&count=140
/api/v1/livechat/rooms?open=true&agents=“spam-agent”,“jamesbecker”&sort={%22lm%22:1}&count=140
/api/v1/livechat/rooms?open=true&agents=“spam-agent,jamesbecker”&sort={%22lm%22:1}&count=140
/api/v1/livechat/rooms?open=true&agents=[%22spam-agent%22,%22jamesbecker%22]&sort={%22lm%22:1}&count=140
/api/v1/livechat/rooms?open=true&agents=%5B%22spam-agent%22,%22jamesbecker%22%5D&sort={%22lm%22:1}&count=140