Delete Campaign Reward
growsurf_delete_campaign_rewardDelete a campaign reward from a GrowSurf program: deactivates the reward, removes it from the reward set, and cleans up any connected upfront-discount coupons. Returns { id, success }.
Instructions
Delete 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| campaignId | No | Target program (campaign) id for this call. 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. |