Skip to main content

update

client.specs.update(data: UpdateSpecRequest): Promise<Spec>

Updates an existing specification document.

Modifies the content, metadata, or structure of a spec. Use this to add new sections, update information, change versions, or make other modifications as specifications evolve.

Parameters

ParameterTypeRequiredDescription
dataUpdateSpecRequestYesRequest containing the spec updates

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.specs.update(/* UpdateSpecRequest */);
console.log(result);