Create a leaderboard
create_leaderboardAdd a leaderboard to a game. id is its Bridge SDK tag: unique within the game and not changeable later. Check list_leaderboards for tags already taken. Deleting a leaderboard is not available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The tag the game passes to the Playgama Bridge SDK, e.g. top_players. Unique within the game | |
| name | Yes | Human-readable name of the leaderboard, as the cabinet shows it | |
| type | Yes | What a score is: `numeric` for points, `time` for a duration. The ranking direction is `scoreOrder`. | |
| decimals | No | Number of decimal places for scores, 0 to 32767. Default 0. Scores are stored as whole numbers — a fractional score the game submits is rounded — so this does not make fractional scores possible. | |
| scoreOrder | No | `desc` ranks the highest score first, `asc` the lowest — e.g. the fastest time. Default desc. | |
| applicationId | Yes | Application (game) id, as returned by list_applications |