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;
appSlug?: string | undefined;API auth app slug.
›name?: string | undefined;
name?: string | undefined;Updated display name.
›description?: string | undefined;
description?: string | undefined;Updated description.
›is_active?: boolean | undefined;
is_active?: boolean | undefined;Enable or disable the app.
›rate_limit_scheme_slug?: string | undefined;
rate_limit_scheme_slug?: string | undefined;Attach or change rate-limit scheme.
›permissions?: string[] | undefined;
permissions?: string[] | undefined;Updated permission scope.
›resources?: string[] | undefined;
resources?: string[] | undefined;Updated resource scope.
Return value
›app_slug?: string | undefined;
app_slug?: string | undefined;API auth app slug.
›name?: string | undefined;
name?: string | undefined;API auth app name.
›is_active?: boolean | undefined;
is_active?: boolean | undefined;Whether API auth app is active.
›permissions?: string[] | undefined;
permissions?: string[] | undefined;Granted permission list.
›resources?: string[] | undefined;
resources?: string[] | undefined;Granted resource scope list.