Sign in

Update members

documented

Updates members of a referral program using a query object to identify members and a member object for updates.

POST /api/members/updateMembersno 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/members/update" \
  -X POST \
  -H "Authorization: Basic {{REFERRALROCK_BASIC_AUTH}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '[
    {
      "query": {
        "primaryInfo": {"memberId": "{{$memberId}}", "referralCode": "{{$referralCode}}"},
        "secondaryInfo": {"externalIdentifier": "{{$externalIdentifier}}", "email": "{{$email}}"},
        "tertiaryInfo": {"programId": "{{$programId}}", "programName": "{{$programName}}", "programTitle": "{{$programTitle}}"}
      },
      "member": {
        "firstName": "{{$firstName}}", 
        "lastName": "{{$lastName}}", 
        "email": "{{$email}}", 
        "phone": "{{$phone}}", 
        "externalIdentifier": "{{$externalIdentifier}}",
        "dateOfBirth": "{{$dateOfBirth}}", 
        "addressLine1": "{{$addressLine1}}", 
        "city": "{{$city}}", 
        "region": "{{$region}}", 
        "country": "{{$country}}", 
        "postalCode": "{{$postalCode}}",
        "recruiterAssignedId": "{{$recruiterAssignedId}}",
        "payoutInfo": {"payoutType": "{{$payoutType}}", "useDefaultValues": {{$useDefaultValues}}, "email": "{{$payoutEmail}}"},
        "customOption1Name": "{{$customOption1Name}}", "customOption1Value": "{{$customOption1Value}}", 
        "customText1Name": "{{$customText1Name}}", "customText1Value": "{{$customText1Value}}", 
        "customText2Name": "{{$customText2Name}}", "customText2Value": "{{$customText2Value}}", 
        "customOverrideURL": "{{$customOverrideURL}}"
      }
    }
  ]'
Update members · referralrock · OpenIntegrations