更新聊天室信息
PATCH
/im/v2/chatrooms/{room_id}请求参数
Path 参数
room_id
string
必需
需要更新信息的聊天室 ID,聊天室创建成功后,云信会返回聊天室 ID。
示例值:
1605537145
Body 参数application/json
room_name
string
必需
announcement
string
可选
live_url
string
可选
extension
string
可选
antispam_business_id
string
可选
queue_level
enum<integer>
可选
枚举值:
01
notification_enabled
boolean
必需
notification_extension
string
必需
示例
{
"room_name": "期果应压002",
"notification_enabled": false,
"notification_extension": "magna",
"live_url": "http://mmstml.se/iyjhaw",
"extension": "Excepteur enim cupidatat deserunt",
"announcement": "dolore in",
"antispam_business_id": "{\"textbid\":\"39ab456a6469ab6404a54de316672ffd\"}",
"queue_level": 1
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
msg
string
必需
data
object
必需
valid
boolean
必需
extension
string
必需
creator
string
必需
announcement
string
必需
room_name
string
必需
chat_banned
boolean
必需
live_url
string
必需
room_id
integer
必需
queue_level
integer
必需
in_out_notification
integer
必需
cdn_message_enable
boolean
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"valid": true,
"extension": "extension",
"creator": "yx29",
"announcement": "announcement",
"room_name": "room_name",
"chat_banned": false,
"live_url": "broadcast_url",
"room_id": 1605537145,
"queue_level": 0,
"in_out_notification": 1,
"cdn_message_enable": false
}
}
最后修改时间: 10 个月前