Game: Rosters & Stats
Submit Or Update Player Stats For A Map
Set per-player stats on an existing map score for one of your game’s matches.
POST
Permission Required
This endpoint requires thegame.scores permission with write access. (game.scores is a write-level permission - its levels are none or write, not read-write.) Your API key must be a game-developer key bound to a game. The binding asserts the match belongs to your bound game before the handler runs: a key bound to a different game, or a non-developer key, receives a 403 error_game_scope_mismatch.
Access / Membership Rules
The map score for the givenmapIndex must already exist - submit the score first via the scores endpoints, then attach player stats here. mapIndex must be a non-negative integer. An unknown match returns 404 error_match_not_found.
What’s Returned
Returns{ "success": true, mapIndex, action }, where action is always updated on success.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
mapIndex | number | Yes | Zero-based index of the map whose stats are being set. |
playerStats | object | Yes | Per-player stats keyed by user ID. The map score must already exist. |
Authorizations
Send your API key as: Authorization: Bearer tb_
Path Parameters
Match ID.
Body
application/json