cURL
curl --request POST \ --url https://{subdomain}.nudj.cx/api/v2/admin/achievements/{achievementId}/distribution \ --header 'Content-Type: application/json' \ --header 'x-api-token: <api-key>' \ --data ' { "rewardsConfig": { "mechanism": "all", "amountToDistribute": 1, "allocations": [ { "allocationType": "assets", "amountToDistribute": 2, "rewardId": "<string>", "id": "<string>", "supply": 1 } ] }, "pointsToDistribute": 1, "bonusXpToDistribute": 1 } '
{ "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>" }
Assign a distribution details to an achievement.
The id of the achievement to assign distribution details to
The input required to assign distribution details to an achievement
Show child attributes
The amount of points to distribute.
x >= 0
The amount of bonus xp to distribute
Successful response
The id of the achievement with assigned distribution details
Was this page helpful?