https://xxxxxx/v4/live_engine_http_srv/del_relay_room?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
参数 | 说明 |
xxxxxx | SDKAppID 所在国家/地区对应的专属域名: 中国: console.tim.qq.com新加坡: adminapisgp.im.qcloud.com硅谷: adminapiusa.im.qcloud.com雅加达: adminapiidn.im.qcloud.com |
v4/live_engine_http_srv/del_relay_room | 移除转发子房间接口。 |
sdkappid | |
identifier | |
usersig | |
random | 请输入随机的32位无符号整数,取值范围0 - 4294967295。 |
contenttype | 请求格式固定值为 json。 |
{"RoomId": "main-room-001","RelayRoomIdList": ["child-room-002", "child-room-003"]}
字段 | 类型 | 属性 | 说明 |
RoomId | String | 必填 | 主房间 ID。仅主房间的房主或管理员可以移除子房间。 |
RelayRoomIdList | Array of String | 必填 | 待移除的子房间 ID 列表: 单次最多 5 个; 子房间必须存在且属于该主房间,否则对应子房间返回错误。 |
项目 | 移除前(子房间) | 移除后(子房间) |
混流画面 | 转发主房间混流内容。 | 恢复子房间自身混流(若麦位有人),或停止混流(若麦位无人)。 |
布局模板 | 使用主房间映射的转发模板。 | 恢复为创建时的原始模板。 |
连线/上麦/PK | 禁止。 | 恢复正常,不再受限。 |
RelayRole | Sub(2)。 | None(0)。 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","Response": {"ResultList": [{"RoomId": "child-room-002","ErrorCode": 0,"ErrorInfo": ""},{"RoomId": "child-room-003","ErrorCode": 0,"ErrorInfo": ""}]}}
字段 | 类型 | 说明 |
ActionStatus | String | 请求处理的结果: OK 表示处理成功; FAIL 表示失败。 |
ErrorCode | Integer | 错误码: 0:表示成功; 非0:表示整体请求失败。 |
ErrorInfo | String | 错误信息。 |
RequestId | String | 唯一请求 ID,每次请求都会返回,定位问题时需要提供该次请求的 RequestId。 |
Response.ResultList | Array | 每个子房间的操作结果列表,顺序与请求中的 RelayRoomIdList 一致。 |
Response.ResultList[i].RoomId | String | 子房间 ID。 |
Response.ResultList[i].ErrorCode | Integer | 该子房间的操作结果。0 表示成功,非 0 表示失败。 |
Response.ResultList[i].ErrorInfo | String | 该子房间的错误信息。 |
错误码 | 含义说明 |
100001 | 服务器内部错误,请重试。 |
100002 | 请求参数非法,请根据错误描述检查请求是否正确。常见原因:子房间不存在、RelayRoomIdList 为空。 |
100006 | 权限不足。常见原因:非 REST API 调用、非房主且非管理员调用、子房间不属于该主房间。 |
100012 | 操作频率超限。同一主房间每秒仅允许 1 次转发写操作。 |
100027 | 操作进行中。同一主房间有另一个转发写操作正在执行,请稍后重试。 |
文档反馈