Update Campaign Group
growsurf_update_campaign_groupRename, reorder, or change the rules of a group on your GrowSurf program. Sending rules replaces the whole list. An added PARTICIPANT rule moves that participant in now; a removed one moves them back to Default if they are still in this group. Email and domain rule changes move no one. To change the group's rewards, use growsurf_update_campaign_reward. Group names must be unique in the program (case is ignored), and "Default" is reserved. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The group name (internal only, never shown to participants). | |
| order | No | The group's position in the program's group list. | |
| rules | No | Replaces the group's whole rule list. Up to 500. | |
| groupId | Yes | The group ID (`grp_…`). | |
| 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 |
|---|---|---|---|
| id | No | The group ID (`grp_…`). | |
| name | No | The group name (internal only, never shown to participants). | |
| order | No | The group's position in the program's group list. | |
| rules | No | The rules that place participants in this group. | |
| createdAt | No | When the group was created, in Unix milliseconds. | |
| updatedAt | No | When the group was last changed, in Unix milliseconds. | |
| signupCode | No | The code for this group's signup link. A participant who signs up through the link joins this group. |