POST
/
games
/
bans
curl --request POST \
  --url https://api.readmin.app/games/bans \
  --header 'Content-Type: application/json' \
  --header 'loader-id: <api-key>' \
  --data '{
  "userId": "<string>",
  "reason": "<string>",
  "bannedByUserId": "<string>",
  "expiresInDays": 123
}'
{
  "success": true,
  "ban": {
    "_id": "<string>",
    "groupId": "<string>",
    "userId": "<string>",
    "reason": "<string>",
    "disciplinarianId": "<string>",
    "active": "<string>",
    "created": true,
    "expires": "<string>"
  }
}

Authorizations

loader-id
string
header
required

Body

application/json

The body is of type object.

Response

201
application/json

The request was successful, and a new resource was created.

The response is of type object.