更新直播房间自动开播设置

请求地址

PUT  /api/live/v1/room/{id}/auto-open
字段 是否可选 类型 描述
Authorization string 认证信息,格式:bearer ${token}
Accept-Language string 选择语言,(zh-CN)(zh-TW)(en-US)
默认值: zh-CN
Content-Type string application/x-www-form-urlencoded

请求参数

字段 是否可选 类型 描述
autoOpenSwitch Boolean 自动开播开关

响应参数

字段 类型 描述
resCode int 响应码
resMessage String 提示消息(根据language参数,选择语言返回)
data json 响应数据

成功返回

http/1.1 200 OK
{
   "resCode":1,
   "resMessage":"success",
   "data":{
               "inviteCode":362879183,
           "liveRoom":{
                   "id":131,
                   "liveName":"will直播房间",
                   "status":1,
                   "verifyMode":0,
                   "companyId":91504,
                   "liveUri":"https://live.fsmeeting.com/Xxxxxxxxx",
                   "anchorName":"will",
                   "logoUrl":"https://static.livecdn.com/logo.png",
                   "coverUrl":"https://static.livecdn.com/cover.png",
                   "liveInfo":"这是一个直播间",
                   "startTime":1516505700000,
                   "endTime":1516592400000,
                   "confRoomId":206094,
                   "confRoomName":"will直播房间"
                   "depId":2,
                   "depName":"will",
                   "countdownSwitch":false,
                   "autoOpenSwitch":true
             }
   }
}

失败返回

http/1.1 200 OK
{
    "resCode": -1,
    "resMessage": "xxx",
}

results matching ""

    No results matching ""