Decide Player
POST
/server/v1/players/{steam64}/decide
const url = 'https://example.com/server/v1/players/1/decide';const options = {method: 'POST'};
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/decideLock this player’s kit and/or powerup for the match they are on.
Both fields are optional and checked against the gamemode. Once every player has locked both, the outstanding map/ballistics/movement picks are decided at once, since nobody picking in game is at a browser to make them.
Answers with the same choose block GET /players/{steam64} returns.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”steam64
required
Steam64
integer
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Decision
POST /players/{steam64}/decide.
object
matchId
required
Matchid
integer
choose
required
Any of:
Choices
What a player still gets to decide, and what they have decided so far. A list with one entry is not a choice and comes back empty.
null
Examplegenerated
{ "matchId": 1, "choose": { "kits": [ "example" ], "powerups": [ "example" ], "kit": "example", "powerup": "example" }}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": {} } ]}