import { Webhook } from 'models' import { sendRequest } from 'utils' type Props = { typebotId: string webhookId: string data: Partial> } export const updateWebhookQuery = ({ typebotId, webhookId, data }: Props) => sendRequest<{ webhook: Webhook }>({ method: 'PATCH', url: `/api/typebots/${typebotId}/webhooks/${webhookId}`, body: { data }, })