Delete Channel
https://api.deadsimplechat.com/consumer/api/v1/chatroom/:roomId/channel/:channelId
Delete Channel
Endpoint to delete the channel and all the messages inside of the channel. If you just want to hide the channel from the chatroom, check the Update Channel
API Call and set the enabled to false
info
The auth
query parameter is your private key. You can find it in your Dashboard under Developer -> Private Key.
Delete Channel | Description | |
---|---|---|
Path Parameters | ||
channelId | string | id of the channel |
roomId | string | roomId where the channel is present |
Query Parameters | ||
auth | string | Go to Dashboard -> Developer -> Private Key is your auth |
Responses
200
JSON
{
"message": "Channel deleted successfully"
}
400
JSON
{
"message": "channel not found"
}
401
JSON
{
"message": "Invalid auth token"
}