Skip to main content

updatePackage

client.projectStructure.updatePackage(packageId: string, data: UpdatePackageRequest): Promise<PackageDefinition>

Updates an existing package definition.

Modifies the metadata and configuration of a package. Does not affect the package's sections or items; use and for those operations.

Parameters

ParameterTypeRequiredDescription
packageIdstringYesThe unique identifier of the package to update
dataUpdatePackageRequestYesThe fields to update on the package

Returns

Promise<PackageDefinition> — A promise that resolves to the updated package definition

Example

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

const client = new CodeBoltClient();

const result = await client.projectStructure.updatePackage('packageId', /* UpdatePackageRequest */);
console.log(result);