Ban User

Ban a user

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
userIdstringRequired
The user id
banReasonstring or nullOptional
The reason for the ban
banExpiresIndouble or nullOptional
The number of seconds until the ban expires

Response

User banned
userobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error