NewWacht Bench is live — AI-assisted development for Wacht

updateB2BSettings()

Patches organization/workspace behavior, role defaults, membership limits, and related B2B flags.

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 updateB2b() {  const client = await wachtClient();  await client.settings.updateB2BSettings({    organizations_enabled: true,    workspaces_enabled: true,  });}

Signature

function updateB2BSettings(  request: DeploymentB2bSettingsUpdates,): Promise<void>

DeploymentB2bSettingsUpdates

organizations_enabled?: boolean | undefined;
Enable organizations feature.
workspaces_enabled?: boolean | undefined;
Enable workspaces feature.
allow_users_to_create_orgs?: boolean | undefined;
Allow self-service organization creation.
max_allowed_org_members?: number | undefined;
Organization membership cap.
max_allowed_workspace_members?: number | undefined;
Workspace membership cap.
custom_org_role_enabled?: boolean | undefined;
Enable custom org roles.
custom_workspace_role_enabled?: boolean | undefined;
Enable custom workspace roles.
organization_permissions?: string[] | undefined;
Organization permission catalog.
workspace_permissions?: string[] | undefined;
Workspace permission catalog.
enterprise_sso_enabled?: boolean | undefined;
Enable enterprise SSO capabilities.

Behavior

  • Applies a partial update and returns the server-side updated resource.
  • Treat omitted optional fields as unchanged unless explicitly documented otherwise.

On this page