growsurf_update_participant
Update participant details in GrowSurf by ID or email, including affiliate status, notes, and referral status, while preserving read-only fields.
Instructions
Update a participant by GrowSurf participant ID or email. Only the fields you send are changed; read-only fields such as counters, isAffiliate, origin, and fraud state are rejected with a 400. In affiliate programs, affiliateStatus accepts APPROVED, SUSPENDED, or BANNED; APPROVED enrolls the participant, while SUSPENDED and BANNED require an existing affiliate. Affiliate enrollment cannot be removed through REST. notes is freeform internal notes (never shown to participants). Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Change the participant's email address. | ||
| notes | No | Freeform internal notes (internal only, never exposed to participants). | |
| lastName | No | ||
| metadata | No | ||
| firstName | No | ||
| campaignId | No | Target program (campaign) id for this call. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Pass the `id` returned by growsurf_create_campaign to configure or operate a program you just created, without restarting the server. | |
| referredBy | No | ||
| vanityKeys | No | ||
| unsubscribed | No | ||
| participantId | No | ||
| referralStatus | No | ||
| affiliateStatus | No | Affiliate programs only. Sets the affiliate status. `APPROVED` also enrolls a participant who is not yet an affiliate. `SUSPENDED` and `BANNED` are rejected for non-affiliates. | |
| participantEmail | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||