Sign in

Update rewards

documented

Updates rewards within a referral program.

POST /api/rewards/updateRewardsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.referralrock.com/api/rewards/update" \
  -X POST \
  -u "{{REFERRALROCK_PUBLIC_KEY}}:{{REFERRALROCK_PRIVATE_KEY}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '[{"rewardId": "{{$rewardId1}}","amount": {{$amount1}},"payoutId": "{{$payoutId1}}","eligibilityDate": "{{$eligibilityDate1}}","description": "{{$description1}}"},{"rewardId": "{{$rewardId2}}","amount": {{$amount2}},"payoutId": "{{$payoutId2}}","eligibilityDate": "{{$eligibilityDate2}}","description": "{{$description2}}"}]'