Fuselage
Sync Thread List
List all custom emojis available. It supports the Query, Fields and sort.
URL
Requires Auth
HTTP Method
/api/v1/chat.syncThreadsList
yes
GET

Query Parameters

One of roomId or roomName is required.
Argument
Example
Required
Description
rid
WyKnz8gDdS5jemBoK
Required
Room's ID
updatedSince
2017-11-25T15:08:17.248Z
Required
Date as ISO string
When you provide the updatedSince query parameter in the URL then the update and remove in the response will contain only those updated and removed since this date and time.

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
http://localhost:3000/api/v1/chat.syncThreadsList?rid=GENERAL&updatedSince=2019-02-25T15:08:17.248Z
Copied!

Example Result

1
{
2
"threads": {
3
"update": [
4
{
5
"_id": "J8Sqi5zPw62WgE4Md",
6
"rid": "GENERAL",
7
"msg": "test1",
8
"ts": "2019-04-16T18:16:00.614Z",
9
"u": {
10
"_id": "rocketchat.internal.admin.test",
11
"username": "rocketchat.internal.admin.test",
12
"name": "RocketChat Internal Admin Test"
13
},
14
"_updatedAt": "2019-04-16T18:17:09.749Z",
15
"mentions": [],
16
"channels": [],
17
"replies": [
18
"rocketchat.internal.admin.test"
19
],
20
"tcount": 1,
21
"tlm": "2019-04-16T18:17:09.672Z"
22
},
23
{
24
"_id": "hbs2ZAjHH2JXrP7C7",
25
"rid": "GENERAL",
26
"msg": "another test",
27
"ts": "2019-04-16T18:13:20.403Z",
28
"u": {
29
"_id": "rocketchat.internal.admin.test",
30
"username": "rocketchat.internal.admin.test",
31
"name": "RocketChat Internal Admin Test"
32
},
33
"_updatedAt": "2019-04-16T18:30:46.722Z",
34
"mentions": [],
35
"channels": [],
36
"replies": [
37
"rocketchat.internal.admin.test"
38
],
39
"tcount": 1,
40
"tlm": "2019-04-16T18:30:46.615Z"
41
}
42
],
43
"remove": [
44
{
45
"_id": "GXwCSs4cx6456WBJk",
46
"rid": "GENERAL",
47
"msg": "test",
48
"ts": "2019-04-16T18:13:39.217Z",
49
"u": {
50
"_id": "rocketchat.internal.admin.test",
51
"username": "rocketchat.internal.admin.test",
52
"name": "RocketChat Internal Admin Test"
53
},
54
"_updatedAt": "2019-04-16T18:16:00.696Z",
55
"mentions": [],
56
"channels": [],
57
"replies": [
58
"rocketchat.internal.admin.test"
59
],
60
"tcount": 1,
61
"tlm": "2019-04-16T18:16:00.614Z",
62
"_deletedAt": "2019-04-16T18:16:13.508Z",
63
"__collection__": "message"
64
}
65
]
66
},
67
"success": true
68
}
Copied!

Change Log

Version
Description
1.0.0
Added
Export as PDF
Copy link
Edit on GitHub