Skip to main content

change

client.workspace.change(workspaceId: string): Promise<void>

Changes the active workspace to the specified one.

Updates the active workspace context directly without requiring a separate selection object. This is a simplified version of the select operation for quick workspace switching.

Parameters

ParameterTypeRequiredDescription
workspaceIdstringYesThe unique identifier of the workspace to activate

Returns

Promise<void> — A promise that resolves when the workspace has been changed

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.workspace.change('workspaceId');
console.log(result);