NewWacht Bench is live — AI-assisted development for Wacht

updateApiAuthApp()

Patches app configuration 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 appName: string = 'value';  const request: UpdateApiAuthAppRequest = {    name: 'Updated API Auth App',    is_active: true,  };  return client.apiKeys.updateApiAuthApp(appName, request);}

Signature

function updateApiAuthApp(  appSlug: string,  request: UpdateApiAuthAppRequest,): Promise<ApiAuthApp>

UpdateApiAuthAppRequest

appSlug?: string | undefined;
API auth app slug.
name?: string | undefined;
Updated display name.
description?: string | undefined;
Updated description.
is_active?: boolean | undefined;
Enable or disable the app.
rate_limit_scheme_slug?: string | undefined;
Attach or change rate-limit scheme.
permissions?: string[] | undefined;
Updated permission scope.
resources?: string[] | undefined;
Updated resource scope.

Return value

app_slug?: string | undefined;
API auth app slug.
name?: string | undefined;
API auth app name.
is_active?: boolean | undefined;
Whether API auth app is active.
permissions?: string[] | undefined;
Granted permission list.
resources?: string[] | undefined;
Granted resource scope list.

On this page