Create Channel
https://api.deadsimplechat.com/consumer/api/v1/chatroom/:roodId/channel
Create Channel
Create a Channel Inside of a Chat Room
Parameters | Description | |
---|---|---|
Path | ||
roomID | string | roomId of the chat room where you want to create the channel |
Query | ||
auth | string | auth token of the chat room |
Body | ||
enabled | boolean | set the channel enabled or disabled |
notifyAllUsers | boolean | Whenever a message is sent to this channel do you want to notify all users in the chant room. If this is set to true all users in the chatroom will be notified even if they have never opened the channel, if this is set to false then only the users who have open the channel will be notified of the new messages. |
channelName | string | name of the channel |
Responses
200
JSON
{
"success": true
}
404
JSON
{
"message": "Invalid auth token"
}