Set (replace) the entire blacklist for a channel
1 - Person channel2 - Group channel"ok" on success| Status Code | Description |
|---|---|
| 200 | Blacklist set successfully |
| 400 | Request parameter error |
| 403 | No management permission |
| 404 | Channel does not exist |
| 500 | Internal server error |
uids is an empty array:
| Restriction | Description | Scope |
|---|---|---|
| Cannot Send Messages | Blocked from sending any messages to the channel | All message types |
| Cannot Receive Messages | Will not receive messages from the channel | All channel messages |
| Conversation Deletion | Related conversations are automatically deleted | Except live channels |
| Permission Revocation | Lose all channel-related permissions | Complete isolation |
| Operation | Function | Use Case |
|---|---|---|
blacklist_add | Add users to existing blacklist | Incrementally add violating users |
blacklist_set | Replace entire blacklist | Batch management, reset blacklist |
blacklist_remove | Remove specific users from blacklist | Lift restrictions on specific users |
| Error Message | Cause | Solution |
|---|---|---|
| Channel ID cannot be empty | No channel ID provided | Ensure valid channel ID is provided |
| Channel type cannot be 0 | Invalid channel type | Use valid channel type (1 or 2) |
| Channel ID cannot contain special characters | Invalid channel ID format | Use alphanumeric characters and underscores |
| Remove all blacklist failed | Clear operation failed | Check channel status and permissions |
| Add blacklist failed | Add operation failed | Check user ID validity |