curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/admin/achievements/{achievementId}/distribution \
--header 'x-api-token: <api-key>'{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"mechanism": "all",
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"allocationType": "assets",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"achievementId": "<string>"
}Get a distribution details for an achievement.
curl --request GET \
--url https://{subdomain}.nudj.cx/api/v2/admin/achievements/{achievementId}/distribution \
--header 'x-api-token: <api-key>'{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"mechanism": "all",
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"allocationType": "assets",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"achievementId": "<string>"
}Successful response
The amount of points to distribute.
x >= 0The amount of bonus xp to distribute
x >= 0Show child attributes
The id of the achievement with assigned distribution details
Was this page helpful?