Create Campaign Group
growsurf_create_campaign_groupCreate an empty group on your GrowSurf program. Add Campaign Rewards with this group's groupId before adding participants or rules. Omit rules or send an empty array; nonempty rules return 400. Use growsurf_update_campaign_group to add rules after configuring rewards. Group names must be unique, ignoring case; Default is reserved. Targets campaignId if you pass it, 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": {
"name": "<name>",
"campaignId": "<campaignId>"
},
"name": "growsurf_create_campaign_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The group name (internal only, never shown to participants). | |
| rules | No | Omit this field or send an empty array. Add rules with `growsurf_update_campaign_group` after configuring at least one reward. | |
| 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. The link alone does not reveal private rewards. A participant who signs up with the link and verifies their identity joins the group. |