Get Discussions
REST API Get Discussions Methods
URL | Requires Auth | HTTP Method |
---|---|---|
/api/v1/rooms.getDiscussions | yes | GET |
curl -H "X-Auth-Token: ijFlJ1yfidXhwEYY284Anoq_iEsOeMMVCupzNhX22tB" \
-H "X-User-Id: hw5DThnhQmxDWnavu" \
-H "Content-type: application/json" \
http://localhost:3000/api/v1/rooms.getDiscussions?roomId=GENERAL
{
"discussions": [
{
"_id": "hthLkno5RqTyNna4H",
"name": "8BRnQEJQM8MjJWxkJ",
"fname": "general discussion",
"t": "p",
"msgs": 1,
"usersCount": 1,
"u": {
"_id": "rocketchat.internal.admin.test",
"username": "rocketchat.internal.admin.test"
},
"topic": "general",
"prid": "GENERAL",
"ts": "2019-04-03T01:01:36.286Z",
"ro": false,
"sysMes": true,
"default": false,
"_updatedAt": "2019-04-03T01:01:36.402Z",
"lastMessage": {
"msg": "test",
"ts": "2019-04-03T01:01:36.339Z",
"u": {
"_id": "rocketchat.internal.admin.test",
"username": "rocketchat.internal.admin.test",
"name": "RocketChat Internal Admin Test"
},
"rid": "hthLkno5RqTyNna4H",
"_id": "LLoaxBR8A7M24Qiji",
"_updatedAt": "2019-04-03T01:01:36.368Z",
"mentions": [],
"channels": []
},
"lm": "2019-04-03T01:01:36.339Z"
}
],
"count": 1,
"offset": 0,
"total": 1,
"success": true
}
Version | Description |
---|---|
1.0.0 | Added |
Last modified 5mo ago