curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/games/{gameConfigId}/distribution \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"distributions": [
{
"rewardsConfig": {
"amountToDistribute": 1,
"allocations": [
{
"amountToDistribute": 2,
"rewardId": "<string>",
"id": "<string>",
"supply": 1
}
]
},
"pointsToDistribute": 1,
"bonusXpToDistribute": 1
}
]
}
'{
"gameConfigId": "<string>",
"distributions": [
{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"id": "<string>"
}
]
}Assign multiple distribution details (prizes) to a game config.
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/games/{gameConfigId}/distribution \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"distributions": [
{
"rewardsConfig": {
"amountToDistribute": 1,
"allocations": [
{
"amountToDistribute": 2,
"rewardId": "<string>",
"id": "<string>",
"supply": 1
}
]
},
"pointsToDistribute": 1,
"bonusXpToDistribute": 1
}
]
}
'{
"gameConfigId": "<string>",
"distributions": [
{
"pointsToDistribute": 1,
"bonusXpToDistribute": 1,
"rewardsConfig": {
"amountToDistribute": 1,
"allocations": [
{
"id": "<string>",
"supply": 1,
"amountToDistribute": 2,
"distributed": 1,
"isLive": true,
"rewardId": "<string>"
}
]
},
"id": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.nudj.cx/llms.txt
Use this file to discover all available pages before exploring further.
The id of the game config to assign distribution details to
The input required to assign distribution details to a game config
Array of distribution configurations (prizes) for the game
Show child attributes
Was this page helpful?