Update Program Installation
growsurf_update_campaign_installationUpdate a GrowSurf program's Installation tab configuration by patching selected fields; omitted fields stay unchanged and arrays are replaced wholesale.
Instructions
Update the Installation tab configuration for your GrowSurf program under fields. Only supplied fields change; omitted fields retain their existing values and arrays replace wholesale. allowedUrls includes permitted browser origins such as http://localhost:3000. An origin missing from both shareUrl and allowedUrls can return 403. Referral links already shared point at the current shareUrl. Replacing an existing Share URL requires the customer's explicit approval and replaceExistingShareUrl: true; otherwise the patch is refused. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_installation first and use its field names and allowed values exactly. An invalid field returns an error that names the field. 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_installation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Installation fields to patch. Common keys include `shareUrl`, `allowedUrls`, `signupEvent`, `referralTrigger`, `signup`, `useGrowSurfHostedLinks`, `mobile`, `offerPageRedirectSeconds`, and `instructionSelections`. Arrays replace wholesale. | |
| 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. | |
| replaceExistingShareUrl | No | Set this to `true` only after the customer confirms they want a different landing page. Without it, a patch that would replace a Share URL that is already set is refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||