Skip to content

Decide Player

POST
/server/v1/players/{steam64}/decide
curl --request POST \
--url https://example.com/server/v1/players/1/decide

Lock 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.

steam64
required
Steam64
integer
kit
Any of:
string
powerup
Any of:
string

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.

object
kits
required
Kits
Array<string>
powerups
required
Powerups
Array<string>
kit
required
Any of:
string
powerup
required
Any of:
string
Examplegenerated
{
"matchId": 1,
"choose": {
"kits": [
"example"
],
"powerups": [
"example"
],
"kit": "example",
"powerup": "example"
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
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": {}
}
]
}