Update webhook
update_webhookModify an existing webhook by changing its HTTPS URL, replacing subscribed events, or setting it inactive; send the full event list to add or remove subscriptions.
Instructions
Update an existing webhook: change url (HTTPS only), the subscribed events, or set deactivate=true to switch the webhook to INACTIVE. events is the full subscription list, not a delta — to add CART_UPDATED to an existing webhook, read it with get_webhook first and send its current events plus the new one. Call get_operation_schema("UpdateWebhook") for the exact request shape.
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": {
"id": "<id>",
"webhook": "<webhook>"
},
"name": "update_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Webhook ID (UUID). | |
| webhook | Yes | Fields to update, matching the UpdateWebhookRequest schema (see get_operation_schema("UpdateWebhook")). Must not be empty. |