Bans API¶
Older endpoint notes
Rendered from ProjectInfo/api-docs/api/bans.md on docs/encryption-modes-spec. These notes predate the REST API reference, which is canonical wherever the two overlap. They are published because they still cover endpoints the reference does not yet document — check shapes against the reference and the spec errata.
All endpoints require Authorization: Bearer <token> and PermBanMembers.
GET /api/servers/{serverID}/bans¶
List all bans for a server.
Response 200: Array of Ban
PUT /api/servers/{serverID}/bans/{userID}¶
Ban a user.
Request:
Response 204
DELETE /api/servers/{serverID}/bans/{userID}¶
Unban a user.
Response 204