Suspend a player and end their sessions
POST
/api/admin/players/{id}/banAuthorization
AuthorizationBearer token · headerrequiredPath parameters
idstringrequiredmin length 1
Request body
requiredapplication/jsonreasonstringexpiresAtstring<date-time> | nullrequiredShow propertiesHide properties
Any of:
string<date-time>
string<date-time>null
nullResponses
200
Success
okbooleanrequired400
Response for status 400
errorstringrequired401
Unauthorized
errorstringrequired404
Response for status 404
errorstringrequired422
Validation failed
typestringrequiredonstringrequiredsummarystringmessagestringfoundanypropertystringexpectedstring500
Unhandled server error
errorstringrequired