创建云会议室
POST
/rsc/api/v2/admin/virtual-rooms
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
theme
string | null
云会议室名称
<= 30 字符
code
string
可选
option
object (VirtualRoomOptionForm)
云会议室设置
password
string | null
会议密码
autoMuteType
enum<integer> | enum<null>
必需
枚举值:
012
默认值:
{value: 0}
autoCallEnabled
boolean | null
必需
默认值:
false
autoRecordEnabled
boolean | null
必需
默认值:
false
recordLayoutMode
enum<integer> | enum<null>
必需
枚举值:
01
默认值:
{value: 1}
recordLayoutTemplate
string | null
必需
bannerEnabled
boolean | null
必需
默认值:
false
bannerInfo
object (BannerInfoForm)
横幅内容
mediaCapabilityOptions
媒体能力参数设置
joinBeforeMasterEnabled
boolean | null
必需
默认值:
true
applyMasterEnabled
boolean
是否开启主持人密码
默认值:
true
masterPassword
string
主持人密码
masterPasswordTimes
integer
可选
默认值:
10
maxEndpointCount
integer
可选
joinPermissionRangeType
enum<integer> | enum<null>
必需
枚举值:
01
默认值:
{value: 0}
layoutOptions
array[object (LayoutOptionForm) {4}] | null
布局设置
默认值:
new ArrayList<>()
venues
array[object (UserForm) {2}] | null
新增的用户或设备
<= 1000 items
默认值:
new ArrayList<>()
uid
string | null
用户或设备id
uidType
enum<integer> | enum<null>
用户类型
枚举值:
0123
示例
{
"theme": "string",
"code": "string",
"option": {
"password": "string",
"autoMuteType": "{value: 0}",
"autoCallEnabled": false,
"autoRecordEnabled": false,
"recordLayoutMode": "{value: 1}",
"recordLayoutTemplate": "string",
"bannerEnabled": false,
"bannerInfo": {
"text": "string",
"textSize": 0,
"textColor": {
"a": 0,
"r": 0,
"g": 0,
"b": 0
},
"backgroundColor": {
"a": 0,
"r": 0,
"g": 0,
"b": 0
},
"textLocation": 0,
"displayModel": 0,
"bannerId": 0
},
"mediaCapabilityOptions": {
"bitRate": "2048kbit/s",
"mediaCrypto": "自动加密",
"frameRate": "自动",
"videoResolution": "自动",
"videoCodecs": "自动",
"audioCodecs": "自动",
"auxiliaryStreamBandwidthWeight": "50%"
},
"joinBeforeMasterEnabled": true,
"applyMasterEnabled": true,
"masterPassword": "string",
"masterPasswordTimes": 10,
"maxEndpointCount": 0,
"joinPermissionRangeType": "{value: 0}",
"layoutOptions": "new ArrayList<>()"
},
"venues": "new ArrayList<>()"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/rsc/api/v2/admin/virtual-rooms' \
--header 'Content-Type: application/json' \
--data-raw '{
"theme": "string",
"code": "string",
"option": {
"password": "string",
"autoMuteType": "{value: 0}",
"autoCallEnabled": false,
"autoRecordEnabled": false,
"recordLayoutMode": "{value: 1}",
"recordLayoutTemplate": "string",
"bannerEnabled": false,
"bannerInfo": {
"text": "string",
"textSize": 0,
"textColor": {
"a": 0,
"r": 0,
"g": 0,
"b": 0
},
"backgroundColor": {
"a": 0,
"r": 0,
"g": 0,
"b": 0
},
"textLocation": 0,
"displayModel": 0,
"bannerId": 0
},
"mediaCapabilityOptions": {
"bitRate": "2048kbit/s",
"mediaCrypto": "自动加密",
"frameRate": "自动",
"videoResolution": "自动",
"videoCodecs": "自动",
"audioCodecs": "自动",
"auxiliaryStreamBandwidthWeight": "50%"
},
"joinBeforeMasterEnabled": true,
"applyMasterEnabled": true,
"masterPassword": "string",
"masterPasswordTimes": 10,
"maxEndpointCount": 0,
"joinPermissionRangeType": "{value: 0}",
"layoutOptions": "new ArrayList<>()"
},
"venues": "new ArrayList<>()"
}'
返回响应
🟢200成功
application/json
Body
云会议室信息
<p>
403111059 创建云会议室时,若存在会议号相同的云会议室,且该会议室仍可用,则抛出此异常
403111060 当创建云会议室时,会议号创建失败,则抛出此异常
isUsed
boolean | null
必需
id
string <int64> | null
云会议室id
code
string | null
会议号
name
string | null
会议室名称
password
string | null
必需
见 TSMB-5634 安卓手机端取这个路径下的密码
type
enum<integer> | enum<null>
必需
枚举值:
123
option
会议室设置
Any of
云会议室信息
403111059 创建云会议室时,若存在会议号相同的云会议室,且该会议室仍可用,则抛出此异常 403111060 当创建云会议室时,会议号创建失败,则抛出此异常
allowJoinBeforeMaster
boolean | null
必需
默认值:
true
password
string | null
会议密码
autoMuteType
enum<integer> | enum<null>
必需
枚举值:
012
默认值:
{value: 0}
autoCallEnabled
boolean | null
必需
默认值:
false
autoRecordEnabled
boolean | null
会话自动开启录制
默认值:
false
recordLayoutMode
enum<integer> | enum<null>
必需
枚举值:
01
默认值:
{value: 1}
recordLayoutTemplate
string | null
必需
bannerEnabled
boolean