Update Program Design
growsurf_update_campaign_designUpdate a GrowSurf program's design configuration, including participant avatars, referred-visitor offer pages, website widget, traffic insights, login copy, and participant settings in one call.
Instructions
Update the design configuration for your GrowSurf program, including participant avatars under participantAvatarStyle, referred-visitor content such as the Claim Offer Popup and the side content of its GrowSurf page (referredExperience.offerPageDescription HTML, up to 5 offerPageSteps of { text, iconKey }, and up to 3 offerPageLinks of { text, url } where an empty url links to the Share URL), the website widget under widget (button or card, placement, timing, and visible pages), the participant Traffic report under trafficInsights, participant sign-in copy under login, payout-destination confirmation page copy under payoutDestinationConfirmation, and the participant Settings panel under participantSettings, such as the language picker's languageSectionTitle (up to 100 characters) and languageSectionInstructionsText (up to 255 characters). trafficInsights.isPublicDisplayed controls visibility; its labels cannot be blank. participantAvatarStyle accepts CHARACTERS, INITIALS, ANIMALS, or GRADIENT. visualStyle accepts GLOW, CLEAN, FLAT, ROUND, TINT, or GLASS; it sets corners, shadows, button shape and background on program pages and the GrowSurf Window. Changing it also fills theme.buttons.borderRadius and the theme.globalBoxShadow fields unless the same request sets them. Text fields use the same character limits as the dashboard Program Editor. Text the Program Editor requires, such as Window labels, button text, and status names, cannot be set to null, empty, or only spaces. Only supplied fields change; omitted fields retain their existing content and arrays replace wholesale. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_design first and use its field names and allowed values exactly, at the same nested path. The Terms page, FAQ page, and How it works text sit under landingPages.content: send fields.landingPages.content.terms (HTML), fields.landingPages.content.termsTitle, and fields.landingPages.content.termsLinkText, never a top-level content. An invalid field returns an error that names the field. When only its parent sections are missing, the error suggests the full path, unless many fields share that name. After a design change is saved, call growsurf_capture_referral_flow_screenshots for short-lived preview screenshots of the referrer and referred-friend experiences. They show the saved program, not the customer's site. Image, icon, and link fields must be hosted http(s) URLs, not data: URIs. Targets campaignId if supplied, otherwise GROWSURF_CAMPAIGN_ID.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"fields": "<fields>",
"campaignId": "<campaignId>"
},
"name": "growsurf_update_campaign_design"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| campaignId | Yes | Target program id for this call: the `id` returned by `growsurf_list_campaigns`, not the program name or a share URL. Defaults to GROWSURF_CAMPAIGN_ID when omitted. Program IDs also identify newly created programs without restarting the server. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||