Delete Channel Message
https://api.deadsimplechat.com/consumer/api/v2/chatroom/:roomId/channel/:channelId/message/:messageId?auth=
info
The auth query parameter is your private key. You can find it in your Dashboard under Developer -> Private Key.
Send a HTTP Delete Request to delete a channel message.
Query Parameters
| Parameter | Description | Data Type |
|---|---|---|
| auth | Go to Dashboard -> Developer -> Private Key is your auth | String |
Path Parameters
| Parameter | Description | Data Type |
|---|---|---|
| roomId | The unique identifier for the chat room | String |
| channelId | The unique identifier for the channel | String |
| messageId | _id of the message you want to delete | String |
Response
Success: 200
{
"success": true,
"message": "channel message deleted"
}
Bad Request: 400
{
"success": false,
"message": "message of the specified if not found"
}
Example Request
- This example demonstrates a curl request to delete a channel message.
- The
roomIdis set to 'G1M_aMHjR'. - The
channelIdis set to '65a5795896685a510697a454'. - The
messageIdis set to '65a58d357fb137599194072f'. - The private key (used for
auth) is set to '32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361'.
curl -X DELETE "https://api.deadsimplechat.com/consumer/api/v2/chatroom/G1M_aMHjR/channel/65a5795896685a510697a454/message/65a58d357fb137599194072f?auth=32326a74704a39394d676d2d3872315f78545f38435f656f6c554a325842776341754f4b4f41336c743335774b344361"