Skip to main content

updateSection

plugin.projectStructure.updateSection(packageId: string, section: string, sectionData: any, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update a specific section of a package

Parameters

ParameterTypeRequiredDescription
packageIdstringYes
sectionstringYes
sectionDataanyYes
workspacePathstringNo

Returns

Promise<ProjectStructureUpdateResponse>

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.projectStructure.updateSection('packageId', 'section', /* any */);
console.log(result);