Update Webhook
growsurf_update_campaign_webhookUpdates a GrowSurf campaign webhook by ID, changing only the fields you provide such as payload URL, events, enabled status, or write-only secret.
Instructions
Update a webhook on your GrowSurf program by id (webhookId is primary for the program's primary webhook). Only the fields you send are changed. secret is write-only and never returned. A program can have only one saved Bask Health webhook across all bask.ninja hosts and paths, including disabled webhooks. An update that leaves more than one Bask Health webhook returns 400. A concurrent change to webhook settings can return 409; reload the webhooks before retrying. Targets campaignId if you pass it, otherwise GROWSURF_CAMPAIGN_ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | No | Replacement event list. Events must be ones the program type offers; an event this webhook already has on is also accepted. | |
| secret | No | Write-only. | |
| isEnabled | No | ||
| webhookId | 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. | |
| payloadUrl | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||