Update Program Options
growsurf_update_campaign_optionsUpdate GrowSurf program Options settings by sending only the fields to change; omitted values stay intact, arrays are replaced, and language/notification settings are configured through the same call.
Instructions
Update the Options tab configuration for your GrowSurf program under fields, in its existing nested shape. Only supplied fields change; omitted fields retain their existing values and arrays replace wholesale. languages.additionalLanguages takes the full list of extra languages; send [] to turn them off. The base language is dropped from that list and duplicates collapse. languages.showFlags shows or hides the flag next to each language name. languages.flagCountries picks the flag for a language that offers more than one, such as { "en": "GB" }; null restores the default flag. Turning on languages.additionalLanguages returns 403 if your account does not include additional languages. While any are on, every languages change, including turning them off, returns the same 403. Translations are managed in the GrowSurf dashboard, not through this tool. The response's read-only languages.baseLanguageTranslation counts Program Editor text that is not in a non-English base language yet (untranslated of total; null for en, or when the account does not include additional languages). When untranslated is above 0 a few minutes after a baseLanguage change, tell the customer they can translate that text from Options > Languages in the dashboard. The field is ignored if you send it back. Do not rewrite the text yourself. notificationEmails.recipients needs at least one valid email address. One call can change many fields, so send related changes together instead of one field per call. Read growsurf_get_campaign_options 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_options"
}
}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 | |||