Calculate V3 Ranks
POST/rank/v3/rank:calculate
Calculate a rank update on players and return the results without persisting them Requires at least two teams, the players' ranks before the last match was played, and parameters on how to calculate the rank changes
Required Permissions:
- For any player (including themselves) any of:
rank:*,rank:calculate
Request
- application/json
Body
required
Array [
Array [
]
]
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
rank_config
object
required
Config about how to recalculate ranks
The maximum mu value achievable. Any attempts to update a rank value to be higher than this get clamped to the maximum
The minimum mu value achievable. Any attempts to update a rank value to be lower than this get clamped to the minimum
The minimum sigma allowed. Any attempts to update sigma to be lower than this get clamped to the minimum
The distance between skill ranks that yields ~76% chance of winning. Recommended value is half the default sigma
The default mu value for this rank id. Will be used when players do not have any rank history
The default sigma for this rank id. Will be used when players do not have any rank history
Possible values: <= 1
The percent probability of a draw occuring in the game. Must be in [0, 1)
Factor that determines how quickly a player's sigma is adjusted. A larger tau will result in more volatile in ranks. Recommended value is is (default_sigma * .01)
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
{
"updated_players": [
{
"player_uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"rank": {
"mu": 0,
"sigma": 0,
"custom_data": {}
}
}
]
}
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"
}
]
}