- Print
- DarkLight
- PDF
Get Room Discussions
- Print
- DarkLight
- PDF
Get all discussions of a room.
Changelog
Version | Description |
---|---|
1.0.0 | Added |
The authToken
of the authenticated user.
The userId
of the authenticated user.
The room name. It is required if the roomId
is not provided.
The room id. It is required if the roomName
is not provided.
This parameter allows you to use MongoDB query operators to search for specific data. For example, to query users with a name that contains the letter "g": query={ "name": { "$regex": "g" } }
The number of items to return.
This parameter accepts a JSON object with properties that have a value of 1 or 0 to include or exclude them in the response. For example, to only retrieve the usernames of users: fields={ "username": 1 }
Number of items to "skip" in the query, i.e. requests return count items, skipping the first offset items.
List of fields to order by, and in which direction. This is a JSON object, with properties listed in desired order, with values of 1 for ascending, or -1 for descending. For example, {"value": -1, "_id": 1}
OK
{
"discussions": [
{
"_id": "6514d34ea2f73c7460e18cb4",
"fname": "test-discussion",
"_updatedAt": "2023-09-28T01:14:04.275Z",
"topic": "general",
"prid": "GENERAL",
"encrypted": false,
"name": "M75nSgA3uYsnTbKRu",
"t": "c",
"msgs": 1,
"usersCount": 1,
"u": {
"_id": "rbAXPnMktTFbNpwtJ",
"username": "roxie",
"name": "test test"
},
"ts": "2023-09-28T01:13:50.574Z",
"ro": false,
"default": false,
"sysMes": true,
"lastMessage": {
"_id": "pnm4kh84HfncDEZj7",
"rid": "6514d34ea2f73c7460e18cb4",
"msg": "Hi guys , this is for SWE team",
"ts": "2023-09-28T01:14:04.119Z",
"u": {
"_id": "rbAXPnMktTFbNpwtJ",
"username": "roxie",
"name": "test test"
},
"_updatedAt": "2023-09-28T01:14:04.233Z",
"urls": [],
"mentions": [],
"channels": [],
"md": [
{
"type": "PARAGRAPH",
"value": [
{
"type": "PLAIN_TEXT",
"value": "Hi guys , this is for SWE team"
}
]
}
]
},
"lm": "2023-09-28T01:14:04.119Z"
}
],
"count": 1,
"offset": 0,
"total": 1,
"success": true
}