Skip to main content

createInDefault

client.projects.createInDefault(data: Record<string, unknown>): Promise<Project>

Creates a new project in the default workspace.

Convenience method that creates a project without needing to specify a workspace. The project is placed in the system's default workspace directory.

Parameters

ParameterTypeRequiredDescription
dataRecord<string, unknown>YesThe project creation payload

Returns

Promise<Project> — A promise that resolves to the newly created project

Example

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

const client = new CodeBoltClient();

const result = await client.projects.createInDefault(/* Record<string, unknown> */);
console.log(result);