Skip to main content
POST
/
rewards
/
manual-distribution
Process manual reward distribution
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>"
  ]
}

Authorizations

x-api-token
string
header
required

Body

application/json
rewards
object[]
required
xpToDistribute
integer
required
Required range: x >= 0
pointsToDistribute
integer
required
Required range: x >= 0
distributionMechanism
enum<string>
required
Available options:
all,
priority,
random,
select
amountToDistribute
integer
required
Required range: x > 0
userIds
string[]
required
Minimum length: 1
communityId
string
required

Response

Successful response

success
boolean
required
usersProcessed
number
required
failedUserIds
string[]
required
message
string
I