curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/admin/leaderboards/{leaderboardConfigId}/distribution \
--header 'x-api-token: <api-key>'
{
"leaderboardConfigId": "<string>",
"rewards": [
{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"mechanism": "all",
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"allocationType": "assets",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"startRank": 2,
"endRank": 2
}
]
}
Get distribution details for a leaderboard config.
curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/admin/leaderboards/{leaderboardConfigId}/distribution \
--header 'x-api-token: <api-key>'
{
"leaderboardConfigId": "<string>",
"rewards": [
{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"mechanism": "all",
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"allocationType": "assets",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"startRank": 2,
"endRank": 2
}
]
}
Was this page helpful?