NewWacht Bench is live — AI-assisted development for Wacht

updateWebhookEndpoint()

Patches endpoint URL, headers, subscriptions, and delivery retry controls.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function example() {  const client = await wachtClient();  const appSlug: string = 'appslug';  const endpointId: string = 'endpointid-123';  const request: UpdateWebhookEndpointRequest = {    is_active: true,    max_retries: 5,    timeout_seconds: 10,  };  return client.webhooks.updateWebhookEndpoint(appSlug, endpointId, request);}

Signature

function updateWebhookEndpoint(  appSlug: string,  endpointId: string,  request: UpdateWebhookEndpointRequest,  client?: WachtClient,): Promise<WebhookEndpoint>

Parameters

appSlug: string;
Slug identifier for the target resource.
endpointId: string;
Identifier for the target resource.
request: UpdateWebhookEndpointRequest;
Request payload object sent to the backend API.
is_active?: boolean | undefined;
Whether the target app or endpoint remains active.
max_retries?: number | undefined;
Maximum retry attempts after failed deliveries.
timeout_seconds?: number | undefined;
Per-attempt timeout in seconds.

Return value

result?: WebhookEndpoint | undefined;
Operation result payload.

On this page