Update referral
documentedUpdates referrals in a referral program using a query object to identify referrals and a referral object for updates.
POST /api/referral/updateReferralsno implementation yet0 runsNo 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/referral/update" \
-X POST \
-H "Authorization: Basic {{REFERRALROCK_API_KEY}}:{{REFERRALROCK_SECRET}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '[ {
"query": {
"primaryInfo": { "referralId": "{{$referralId}}" },
"secondaryInfo": { "externalIdentifier": "{{$externalIdentifier}}", "email": "{{$email}}" },
"tertiaryInfo": { "ProgramId": "{{$ProgramId}}", "ProgramName": "{{$ProgramName}}", "ProgramTitle": "{{$ProgramTitle}}" }
},
"referral": {
"firstName": "{{$firstName}}",
"lastName": "{{$lastName}}",
"email": "{{$email}}",
"phoneNumber": "{{$phoneNumber}}",
"amount": {{$amount}},
"externalIdentifier": "{{$externalIdentifier}}",
"note": "{{$note}}",
"publicNote": "{{$publicNote}}",
"addressLine1": "{{$addressLine1}}",
"city": "{{$city}}",
"region": "{{$region}}",
"postalCode": "{{$postalCode}}",
"country": "{{$country}}",
"status": "{{$status}}",
"recruiterAssignedId": "{{$recruiterAssignedId}}"
}
} ]'"