update_webhook
Modify existing webhooks in the Zoom API MCP Server by updating URL, event types, authorization header, description, or status for streamlined event management.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authorization_header | No | Authorization header | |
| description | No | Webhook description | |
| event_types | No | Event types to subscribe to | |
| status | No | Webhook status | |
| url | No | Webhook URL | |
| webhook_id | Yes | The webhook ID |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"authorization_header": {
"description": "Authorization header",
"type": "string"
},
"description": {
"description": "Webhook description",
"type": "string"
},
"event_types": {
"description": "Event types to subscribe to",
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"description": "Webhook status",
"enum": [
"active",
"inactive"
],
"type": "string"
},
"url": {
"description": "Webhook URL",
"format": "uri",
"type": "string"
},
"webhook_id": {
"description": "The webhook ID",
"type": "string"
}
},
"required": [
"webhook_id"
],
"type": "object"
}
Implementation Reference
- src/tools/webhooks.js:62-69 (handler)Handler function that updates a webhook by sending a PATCH request to the Zoom API endpoint `/webhooks/${webhook_id}` with the provided data.handler: async ({ webhook_id, ...webhookData }) => { try { const response = await zoomApi.patch(`/webhooks/${webhook_id}`, webhookData); return handleApiResponse(response); } catch (error) { return handleApiError(error); } }
- src/tools/webhooks.js:54-61 (schema)Zod schema defining the input parameters for the update_webhook tool, including webhook_id (required) and optional fields like url, event_types, etc.schema: { webhook_id: z.string().describe("The webhook ID"), url: z.string().url().optional().describe("Webhook URL"), event_types: z.array(z.string()).optional().describe("Event types to subscribe to"), authorization_header: z.string().optional().describe("Authorization header"), description: z.string().optional().describe("Webhook description"), status: z.enum(["active", "inactive"]).optional().describe("Webhook status") },
- src/server.js:55-55 (registration)Registration of the webhooksTools array, which includes the update_webhook tool, into the MCP server via the registerTools function.registerTools(webhooksTools);