Authorizations
Body
application/json
Required range:
x >= 0
Required range:
x >= 0
Available options:
all
, priority
, random
, select
Required range:
x > 0
Minimum length:
1
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/rewards/manual-distribution \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '{
"rewards": [
{
"rewardId": "<string>",
"allocationType": "assets",
"quantity": 123
}
],
"xpToDistribute": 1,
"pointsToDistribute": 1,
"distributionMechanism": "all",
"amountToDistribute": 123,
"userIds": [
"<string>"
],
"communityId": "<string>"
}'
{
"success": true,
"message": "<string>",
"usersProcessed": 123,
"failedUserIds": [
"<string>"
]
}
Process a manual distirbution for a set of rewards to specific users.
curl --request POST \
--url https://{subdomain}.nudj.cx/api/v2/admin/rewards/manual-distribution \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '{
"rewards": [
{
"rewardId": "<string>",
"allocationType": "assets",
"quantity": 123
}
],
"xpToDistribute": 1,
"pointsToDistribute": 1,
"distributionMechanism": "all",
"amountToDistribute": 123,
"userIds": [
"<string>"
],
"communityId": "<string>"
}'
{
"success": true,
"message": "<string>",
"usersProcessed": 123,
"failedUserIds": [
"<string>"
]
}
Show child attributes
x >= 0
x >= 0
all
, priority
, random
, select
x > 0
1
Was this page helpful?