Ban Player
POST
/server/v1/players/{steam64}/bans
const url = 'https://example.com/server/v1/players/1/bans';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/server/v1/players/1/bans \ --header 'Content-Type: application/json' \ --data '{ "reason": "example" }'A ban issued by anti-cheat on a game server. An empty body bans for “Cheating”.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”steam64
required
Steam64
integer
Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}