Put Update Chat Room
https://api.deadsimplechat.com/consumer/api/v1/chatroom/:roomId
Put Update Chat Room​
This endpoint allows you to update the chat room.
Parameters | Description | |
---|---|---|
Path | ||
roomID | string | roomId of the chat room you want to update |
Query | ||
auth | string | auth token of the chat room |
Body | ||
roomPassword | string | If passwordProtected is turned on then roomPassword has to be specified. If passwordProtected is turned off then this property has no effect. |
description | string | description of the chat room |
name | string | name of the chatroom |
Responses​
200
JSON
{
"success": true,
"roomId": "MUn5FkFjb",
"url": "https://deadsimplechat.com/MUn5FkFjb"
}
404
JSON
{
"error": {
"_original": {
"name": "cool chat room",
"passwordProtected": true
},
"details": [
{
"message": "\"passwordProtected\" must be one of [on, off, false]",
"path": [
"passwordProtected"
],
"type": "any.only",
"context": {
"valids": [
"on",
"off",
false
],
"label": "passwordProtected",
"value": true,
"key": "passwordProtected"
}
}
]
}
}