Skip to main content
PATCH
Ban Member
Sets a member’s status to "banned". Requires the caller to be a moderator or admin. Moderators can only ban regular members. Only the space creator can ban admins, and the last admin cannot be banned.

Path Parameters

spaceId
string
required
UUID of the space.
memberId
string
required
UUID of the membership record to ban.

Response

message
string
Confirmation message.
membership
object
The updated membership record with status: "banned".

Error Responses

Moderators attempting to ban another moderator or admin.
Non-creator attempting to ban an admin.
See also: useRemoveMember, Unban Member