webhooks.update
Modify an existing webhook endpoint to change its URL, activity status, or event subscriptions within the Ryft MCP server.
Instructions
Update a Ryft webhook endpoint.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| active | Yes | ||
| eventTypes | Yes | ||
| id | Yes |
Implementation Reference
- src/tools/webhooks.ts:37-46 (handler)Registration and implementation of the 'webhooks.update' tool, which updates a webhook using the Ryft HTTP client.
registerTool( 'webhooks.update', 'Update a Ryft webhook endpoint.', webhookUpdateSchema.shape, async (args) => { const parsed = webhookUpdateSchema.parse(args); const { id, ...body } = parsed; return client.patch(`/webhooks/${id}`, body); }, ); - src/tools/webhooks.ts:11-13 (schema)Zod schema definition for validating the input arguments of the 'webhooks.update' tool.
const webhookUpdateSchema = webhookSchema.extend({ id: z.string().min(1), });