Fuselage
Message Update
URL
Requires Auth
HTTP Method
/api/v1/chat.update
yes
POST

Payload

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The room id of where the message is.
msgId
7aDSXtjMA3KPLxLjt
Required
The message id to update.
text
Updated text
Required
Updated text for the message.

Example Call

1
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
2
-H "X-User-Id: aobEdbYhXfu5hkeqG" \
3
-H "Content-type:application/json" \
4
http://localhost:3000/api/v1/chat.update \
5
-d '{ "roomId": "ByehQjC44FwMeiLbX", "msgId": "7aDSXtjMA3KPLxLjt", "text": "Updated text" }'
Copied!

Example Result

1
{
2
"message": {
3
"_id": "qGdhTGDnhMLJPQYY8",
4
"rid": "GENERAL",
5
"msg": "gif+ testing update",
6
"ts": "2017-01-05T17:06:14.403Z",
7
"u": {
8
"_id": "R4jgcQaQhvvK6K3iY",
9
"username": "graywolf336"
10
},
11
"_updatedAt": "2017-01-05T19:42:20.433Z",
12
"editedAt": "2017-01-05T19:42:20.431Z",
13
"editedBy": {
14
"_id": "R4jgcQaQhvvK6K3iY",
15
"username": "graywolf336"
16
}
17
},
18
"success": true
19
}
Copied!

Change Log

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