URL | Requires Auth | HTTP Method |
|
|
|
Argument | Example | Required | Description |
|
| Required | The room id of where the message is to delete. |
|
| Required | The message id to delete. |
|
| Optional
Default: | Whether the message should be deleted as the user who sent it. |
curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \-H "X-User-Id: aobEdbYhXfu5hkeqG" \-H "Content-type:application/json" \http://localhost:3000/api/v1/chat.delete \-d '{ "roomId": "ByehQjC44FwMeiLbX", "msgId": "7aDSXtjMA3KPLxLjt", "asUser": true }'
{"_id": "7aDSXtjMA3KPLxLjt","ts": 1481741940895,"success": true}
Version | Description |
0.48.0 | Added |