nimeet 文档中心
English

封禁规则(kicking-rule)

构建时从公开 REST 接口定义的 `ban-rules` 标签生成:方法、路径、参数、请求体、响应与 curl。

由公开 REST 接口定义生成

版本 v1.1.0 · 更新于 2026-10-26 · 修订 1

分组概览

本页由公开 REST 接口定义在构建时生成:标签 ban-rules,共 4 个操作(全量 189 个)。鉴权、信封与分页约定见 REST API 总览.

方法路径摘要
GET/v1/ban-rulesList kicking rules
POST/v1/ban-rulesCreate a kicking rule
PATCH/v1/ban-rules/{id}Update a kicking rule
DELETE/v1/ban-rules/{id}Delete a kicking rule

操作详情

GET /v1/ban-rules

List kicking rules

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
channelNamequerystring
uidqueryinteger

响应

状态码说明 / schema
200rules — object{ total, rules }

调用示例

bash
curl -s -X GET "$NIMEET_API_BASE/v1/ban-rules?channelName=weekly-sync&uid=10001" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"

POST /v1/ban-rules

Create a kicking rule

鉴权:项目凭证(customerId:customerSecret 的 Base64)

请求体

字段类型必填说明
channelNamestring
uidinteger
ipstring
privilegesarray<enum(join_channel | publish_audio | publish_video)>
durationSecondsinteger默认 3600
json
{
  "channelName": "weekly-sync",
  "uid": 10001,
  "privileges": [
    "join_channel"
  ],
  "durationSeconds": 600
}

响应

状态码说明 / schema
201created — BanRule

调用示例

bash
curl -s -X POST "$NIMEET_API_BASE/v1/ban-rules" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
  -H "Content-Type: application/json" \
  -d '{"channelName":"weekly-sync","uid":10001,"privileges":["join_channel"],"durationSeconds":600}'

PATCH /v1/ban-rules/{id}

Update a kicking rule

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
idpath是string长度 0..128

请求体

字段类型必填说明
durationSecondsinteger
privilegesarray<string>
json
{
  "durationSeconds": 120,
  "privileges": [
    "join_channel"
  ]
}

响应

状态码说明 / schema
200the updated kicking rule — BanRule
400Invalid parameter — Error
404Resource not found — Error

调用示例

bash
curl -s -X PATCH "$NIMEET_API_BASE/v1/ban-rules/weekly-sync_1a2b" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
  -H "Content-Type: application/json" \
  -d '{"durationSeconds":120,"privileges":["join_channel"]}'

DELETE /v1/ban-rules/{id}

Delete a kicking rule

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
idpath是string长度 0..128

响应

状态码说明 / schema
204deleted
404Resource not found — Error

调用示例

bash
curl -s -X DELETE "$NIMEET_API_BASE/v1/ban-rules/weekly-sync_1a2b" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"

本分组用到的 Schema

BanRule — object
字段类型必填说明
idinteger
channelNamestring | null
uidinteger | null
ipstring | null
privilegesarray<enum(join_channel | publish_audio | publish_video)>
expireAtstring | nullformat date-time
createdAtstringformat date-time
Error — object{ code, message, reason, sdkCode, details }
字段类型必填说明
codestring是stable machine code, see errors.json
messagestring是
reasonstring
sdkCodeintegerAgora-aligned client error number
detailsobject

本页由文档构建流水线生成 · 2026-10-31 01:24:02 UTC · 文档中心 v1.1.0.

内容依据公开 API 定义.

ni-meet 是自建 RTC PaaS,媒体面基于 LiveKit(Apache-2.0),并与声网 API 兼容。