Adds a game result for a played game.
POST
/v1/resultAdds a game result for a played game, triggering rating calculation.
It's possible to enter more than two participants, as shown in the example. The Glicko/Elo algorithms don't originally support this - our implementations treat it as 'every entry playing a game against all other entries' and then scale down the total results according to the amount of entries in order to prevent overinflated rating/deviation changes. Due to it being less likely to score your mathematically expected result in a field of, let's say, 20 entries vs. a field of only 2 entries, in practice, rating changes will be slightly less pronounced in larger fields on average. If your type of game/sport/competition lends itself to very large fields, you should consider employing a minimum amount of entries that has to be reached for results to count.
Request
Id of the ladder to be referenced. A result must have either a ladderId or a tournamentId.
Currently unused
IDs of all ladder-entries that have participated in this game.
Defines teams for the given ladderEntryIds. Members of the same team won't be considered to be playing against each other during rating calculation. In the example case, the ladder entry with the ID 123 is in team 1, 42 is in team 3, and 13 and 7 are in team 2. If some entries are in teams but others aren't, you can use team -1 for those that aren't, instead of giving each their own team. Can be omitted if there are no teams.
Describes the game's result for the given ladderEntryIds. In the example case, the ladder entry with the ID 123 has won, 42 has come 2nd, and 13 and 7 share a 3rd place. These results are used for rating calculation.
Any additional JSON with data you would like to store for this result. This will be returned as is when you GET this result.
{
"ladderId": 0,
"tournamentId": 0,
"ladderEntryIds": [
123,
42,
13,
7
],
"entryTeams": [
1,
3,
2,
2
],
"finishPositions": [
1,
2,
3,
3
],
"data": ""
}
Request samples
Responses
References a result.
Id of the ladder to be referenced. A result must have either a ladderId or a tournamentId.
Currently unused
IDs of all ladder-entries that have participated in this game.
Names of all ladder-entries that have participated in this game. Name changes after this game happened are not reflected.
Defines teams for the given ladderEntryIds. Members of the same team won't be considered to be playing against each other during rating calculation. In the example case, the ladder entry with the ID 123 is in team 1, 42 is in team 3, and 13 and 7 are in team 2. If some entries are in teams but others aren't, you can use team -1 for those that aren't, instead of giving each their own team. Can be omitted if there are no teams.
Describes the game's result for the given ladderEntryIds. In the example case, the ladder entry with the ID 123 has won, 42 has come 2nd, and 13 and 7 share a 3rd place. These results are used for rating calculation.
Ratings for the given ladderEntryIds before ratingChanges caused by this result were applied.
Rating changes for the given ladderEntryIds caused by this result.
Reliability deviation changes for the given ladderEntryIds caused by this result. This doesn't include reliability deviation increases caused by not having played an
Currently unused
Any additional JSON with data you would like to store for this result. This will be returned as is when you GET this result.