Skip to main content

create

client.specs.create(data: CreateSpecRequest): Promise<Spec>

Creates a new specification document.

Registers a new spec with the system using the provided content. The spec can include technical details, API definitions, architecture descriptions, and other structured specification information.

Parameters​

ParameterTypeRequiredDescription
dataCreateSpecRequestYesRequest containing the spec details

Returns​

Promise<Spec> — A promise that resolves to the created Spec object

Example​

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

const client = new CodeBoltClient();

const result = await client.specs.create(/* CreateSpecRequest */);
console.log(result);