WuKongIM Docs

Add Channel allowlist members

Operation boundary

  • Caller: Trusted backend only
  • Scope: A derived allowlist can be written before its parent Channel exists and takes effect when it appears. For channel_type=1, channel_id is the whitelist owner UID. Person UIDs cannot contain @. Group allowlist writes affect only permissions.
  • Success: After the person allowlist write, the service prepares both Memberships once per distinct peer and refreshes only the owner’s activated_at. Repeating an add refreshes activation. Join, read and hidden-history boundaries and empty-conversation visibility are preserved.
  • Recovery: A preparation or activation failure can leave earlier writes committed. Retry the same request to finish.
POST/channel/whitelist_add

Adds non-blank UIDs to the Channel allowlist. For a person Channel, prepares both memberships and refreshes only the whitelist owner's activation.

Request Body

application/json

Allowlist members to add or remove.

TypeScript Definitions

Use the request body type in TypeScript.

Allowlist add or remove parameters.

Response Body

application/json

application/json

application/json

{  "status": 200}