Delete Campaign Reward
growsurf_delete_campaign_rewardDelete a campaign reward (reward config) from your GrowSurf program. The reward is deactivated, removed from the program's reward set, and any connected upfront-discount coupons are cleaned up. campaignRewardId is the reward key. Returns { id, success }. 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": {
"campaignRewardId": "<campaignRewardId>",
"campaignId": "<campaignId>"
},
"name": "growsurf_delete_campaign_reward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| campaignRewardId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The deleted campaign reward id. | |
| success | No | Whether the campaign reward was deleted. |