Fuselage
Chat Message Delete
Chat Message Delete
URL
Requires Auth
HTTP Method
/api/v1/chat.delete
yes
POST

Payload

Argument
Example
Required
Description
roomId
ByehQjC44FwMeiLbX
Required
The room id of where the message is to delete.
msgId
7aDSXtjMA3KPLxLjt
Required
The message id to delete.
asUser
true
Optional Default: false
Whether the message should be deleted as the user who sent it.

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.delete \
5
-d '{ "roomId": "ByehQjC44FwMeiLbX", "msgId": "7aDSXtjMA3KPLxLjt", "asUser": true }'
Copied!

Example Result

1
{
2
"_id": "7aDSXtjMA3KPLxLjt",
3
"ts": 1481741940895,
4
"success": true
5
}
Copied!

Change Log

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