Console
Leaderboards

Update Leaderboard

Update the display name, points label, or sort direction of a leaderboard. Existing scores are not affected.

POST /api/leaderboards/update.php
Requires Authorization: AppID:AppKey header

Request body

FieldTypeRequiredDescription
slugstringrequiredIdentifies the leaderboard to update
namestringoptionalNew display name
points_namestringoptionalNew score unit label
sort_orderstringoptionaldesc or asc

Success response 200

{
  "success": true,
  "leaderboard": {
    "id": 1,
    "app_id": "com.myapp.game",
    "slug": "goals",
    "name": "Top Scorers",
    "points_name": "Goals",
    "sort_order": "desc"
  }
}

Errors

CodeMessageCause
400slug is required.Missing identifier
404Leaderboard not found.Slug doesn't exist for this app