Skip to main content
PUT
/
v1
/
servers
/
{serverId}
/
bans
/
{userId}
Ban a member
curl --request PUT \
  --url https://api.magne.app/v1/servers/{serverId}/bans/{userId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "reason": "<string>"
}
'
{
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

serverId
string<uuid>
required
userId
string<uuid>
required

Body

application/json
reason
string | null

Response

Success