Put Update Channel
https://api.deadsimplechat.com/consumer/api/v1/chatroom/:roomId/channel/:channelId
Put Update Channel​
This endpoint allows you to update the channel for a speacific chatroom
Update Channels | Description | |
---|---|---|
Parameteres | ||
Path | ||
channelId | string | id of the channel |
roomId | string | roomId where the channel is present |
Query | ||
auth | string | auth token of the chat room |
Body | ||
enabled | boolean | Set Channel to enabled or disabled |
notifyAllUsers | boolean | Notify all users in the channel when a message is sent to the channel |
channelName | string | Name of the Channel |
Responses​
200
JSON
{
"_id": "61141f7a40801b21ee2c624d",
"channelName": "coolBond",
"enabled": false,
"notifyAllUsers": false,
"roomId": "HTqSW_9-t"
}
400
JSON
{
"message": "channel not found"
}
401
JSON
{
"message": "Invalid auth token"
}