Update a webhook subscription
update_webhook_subscriptionReplace a webhook subscription's event list (webhooks group). The endpoint and watched resource cannot change — delete and recreate the subscription for that.
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": {
"workspaceId": "<workspaceId>",
"environment": "<environment>",
"id": "<id>",
"enabledEvents": "<enabledEvents>"
},
"name": "update_webhook_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Subscription ID (whes_...). | |
| environment | Yes | "TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment). | |
| workspaceId | Yes | Target workspace (ws_...). Must be a granted workspace — get_me lists the accepted values. | |
| enabledEvents | Yes | Full replacement of the subscription's event list. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| createdAt | No | ||
| resourceId | Yes | ||
| resourceType | Yes | ||
| enabledEvents | Yes | ||
| webhookEndpointId | Yes |