import { Webhook } from 'models' import { sendRequest } from 'utils' export const saveWebhook = (webhookId: string, webhook: Partial) => sendRequest<{ webhook: Webhook }>({ method: 'PUT', url: `/api/webhooks/${webhookId}`, body: webhook, })