nimeet Docs
中文

Ban Rules (kicking-rule)

Agora-compatible kicking rules and their lifecycle.

Generated from the public REST API definitions

Version v1.1.0 · Updated 2026-10-26 · revision 1

Group overview

Generated at build time from the public REST API definition: tag ban-rules, 4 operations (out of 189). For authentication, envelope and pagination conventions see REST API overview.

MethodPathSummary
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

Operation details

GET /v1/ban-rules

List kicking rules

Authentication: project credentials (Base64 of customerId:customerSecret)

Parameters

NameLocationRequiredTypeDescription
channelNamequerystring
uidqueryinteger

Response

Status codesDescription / schema
200rules — object{ total, rules }

Example call

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

Authentication: project credentials (Base64 of customerId:customerSecret)

Request body

FieldTypeRequiredDescription
channelNamestring
uidinteger
ipstring
privilegesarray<enum(join_channel | publish_audio | publish_video)>
durationSecondsintegerdefault 3600
json
{
  "channelName": "weekly-sync",
  "uid": 10001,
  "privileges": [
    "join_channel"
  ],
  "durationSeconds": 600
}

Response

Status codesDescription / schema
201created — BanRule

Example call

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

Authentication: project credentials (Base64 of customerId:customerSecret)

Parameters

NameLocationRequiredTypeDescription
idpathisstringlength 0..128

Request body

FieldTypeRequiredDescription
durationSecondsinteger
privilegesarray<string>
json
{
  "durationSeconds": 120,
  "privileges": [
    "join_channel"
  ]
}

Response

Status codesDescription / schema
200the updated kicking rule — BanRule
400Invalid parameter — Error
404Resource not found — Error

Example call

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

Authentication: project credentials (Base64 of customerId:customerSecret)

Parameters

NameLocationRequiredTypeDescription
idpathisstringlength 0..128

Response

Status codesDescription / schema
204deleted
404Resource not found — Error

Example call

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

Schemas used by this group

BanRule — object
FieldTypeRequiredDescription
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 }
FieldTypeRequiredDescription
codestringisstable machine code, see errors.json
messagestringis
reasonstring
sdkCodeintegerAgora-aligned client error number
detailsobject

Generated by the documentation build pipeline · 2026-10-31 01:24:02 UTC · Documentation center v1.1.0.

Content follows the public API definitions.

ni-meet is a self-hosted RTC PaaS with a LiveKit-based media plane (Apache-2.0) and an Agora-compatible API.