Guides

Rank bands

Name a pool's ratings and give them badges: "Bronze" below 1000, "Silver" from 1000, "Gold" from 1500. Each rank band covers a range of ratings. Once a pool has bands, every stats block the API returns carries the band its rating falls in, as groupRank. Your game shows the badge without mapping numbers to names itself.

Set the bands

Send them in groupConfig, when you create the pool or later:

curl -X POST https://api.inhouseranks.com/v1/pool/update \
  -H "x-api-key: $INHOUSE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "groupConfig": {
      "rankMode": "rank",
      "groupRanks": [
        {
          "rank": "Gold",
          "lower": 1500,
          "upper": null,
          "image": "https://assets.example.com/ranks/gold.png"
        },
        { "rank": "Silver", "lower": 1000, "upper": 1500, "tier": 2 },
        { "rank": "Bronze", "lower": null, "upper": 1000 }
      ]
    }
  }'

This call names no pool, so it sets the default pool's bands. Add "poolId" for another pool.

groupConfig replaces the pool's whole config. Send rankMode and groupRanks together. What comes back has the same names: the bands are the pool's config.groupRanks, and a rating's band is its groupRank.

A band is { rank, lower, upper, tier, image }:

Field Meaning
rank The band's name.
lower Where the band starts, inclusive. null means no lower bound.
upper Where the band ends, exclusive. null means no upper bound.
tier Optional whole number your UI can show after the name.
image Optional badge URL.

With "rankMode": "rank", the bands must cover every rating exactly once: the lowest has lower: null, the highest has upper: null, and each starts exactly where the one below it ends. Otherwise the call answers 400 with a group-rank… code. Bands sent without rankMode are stored as they are, and a rating that no band covers reads groupRank: null.

The portal edits the same bands (open a pool, then Ranks) and uploads badge images for you.

Read a player's band

A stats block in a pool with bands:

{
  "positionId": null,
  "mmr": {
    "value": 1600,
    "ratingDeviation": null,
    "volatility": null,
    "lastRatedAt": null
  },
  "wins": 1,
  "losses": 0,
  "ties": 0,
  "matchCount": 1,
  "winStreak": 1,
  "currentStreak": 1,
  "loseStreak": 0,
  "streakIgnoringTies": 1,
  "seasonStartWins": null,
  "seasonStartMatchCount": null,
  "lastPlayedAt": "2026-11-21T19:05:29.559434Z",
  "groupRank": {
    "lower": 1500,
    "upper": null,
    "rank": "Gold",
    "tier": null,
    "image": "https://assets.example.com/ranks/gold.png"
  },
  "hideRating": false
}
  • groupRank is on every stats block, wherever a rated user is returned: both leaderboards, /v1/user/ratings, /v1/pool, /v1/user/create, /v1/user/update-rating, the players in /v1/match/list and /v1/match/get, each player of a /queue/join party, and each player in a match.found event. The per-match rating changes in matchPlayers[].mmrChanges don't carry it.
  • It's null when the pool has no bands, or when none covers the rating.
  • Each block gets the band for its own rating, so a position's block can sit in a different band from the overall one.
  • The band is looked up on every read. It is never stored with the player. Renaming a band or moving its bounds relabels every rating at once, and nobody has to play a match.