Calculate V2 Ranks
POST/rank/v2/rank:calculate
Calculate a rank update on players and persist their new ranks Requires at least two teams, and the players' ranks before the last match was played
Required Permissions: rank:update:any
Request
- application/json
Body
required
Array [
Array [
]
]
Possible values: non-empty and <= 128 characters
ID for the instance the match took place on
Possible values: non-empty
ID for the rank type used in this match
How many seconds the match lasted
teams
object[]
required
List of teams that participated in this match
players
object[]
required
List of CalculatedRank objects that give stats about a specific player from the match
UUID for this specific player
rank
object
required
Ranked data about a player's skill and confidence levels
A measure of perceived skill in a player
A measure of how confident we are in the perceived skill (high sigma means low confidence)
custom_data
object
Custom key-value player rank data
How many seconds this player was in the match
Possible values: >= 1
What rank this team came in. 1 indicates victory, and higher values are placements. Matching ranks indicate draws
Responses
- 200
- 403
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
updated_players
object[]
required
List of players and their updated ranks
UUID for this specific player
rank
object
required
Ranked data about a player's skill and confidence levels
A measure of perceived skill in a player
A measure of how confident we are in the perceived skill (high sigma means low confidence)
custom_data
object
Custom key-value player rank data
Possible values: non-empty
ID for this rank
{
"updated_players": [
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rank": {
"mu": 0,
"sigma": 0,
"custom_data": {}
},
"rank_id": "string"
}
]
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}