updateWebhookApp()
Patches webhook app metadata for one app slug.
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 request: UpdateWebhookAppRequest = { name: 'Updated Webhook App', is_active: true, }; return client.webhooks.updateWebhookApp(appSlug, request);}Signature
function updateWebhookApp( appSlug: string, request: UpdateWebhookAppRequest,): Promise<WebhookApp>UpdateWebhookAppRequest
›appSlug?: string | undefined;
appSlug?: string | undefined;Webhook app slug.
›name?: string | undefined;
name?: string | undefined;Updated app name.
›description?: string | undefined;
description?: string | undefined;Updated app description.
›is_active?: boolean | undefined;
is_active?: boolean | undefined;Enable or disable the app.
›failure_notification_emails?: string[] | undefined;
failure_notification_emails?: string[] | undefined;Failure notification email addresses.
›event_catalog_slug?: string | undefined;
event_catalog_slug?: string | undefined;Bound event catalog slug.
Return value
›app_slug?: string | undefined;
app_slug?: string | undefined;Webhook app slug.
›name?: string | undefined;
name?: string | undefined;Webhook app display name.
›is_active?: boolean | undefined;
is_active?: boolean | undefined;Whether webhook app is active.
›event_catalog_slug?: string | null | undefined;
event_catalog_slug?: string | null | undefined;Bound event catalog slug when set.