/ban-async

post

Create a new ban

Authorizations
Query parameters
experienceBanCompletedbooleanOptional
isAppealbooleanOptional
Body
overwritebooleanRequired

If true it will forcefully overwritten any pre-existing ban with this updated data.

userIdnumberRequired
experienceIdnumberRequired
banModeratornumberRequired
banTypeundefined · enumRequiredPossible values:
banLengthTypeundefined · enumRequiredPossible values:
banLengthstringRequired
banPrivateReasonstringRequired
banPublicReasonstringRequired
Responses
200
OK
application/json
post
POST /api/v1/ban-async HTTP/1.1
Host: sentinel.metatable.dev
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 184

{
  "overwrite": true,
  "userId": 1,
  "experienceId": 1,
  "banModerator": 1,
  "banType": "Experience",
  "banLengthType": "Temporary",
  "banLength": "text",
  "banPrivateReason": "text",
  "banPublicReason": "text"
}
{
  "status": "ok"
}

Last updated

Was this helpful?