Skip to main content

updateUiRoute

plugin.projectStructure.updateUiRoute(packageId: string, routeId: string, updates: Partial<UiRoute>, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update a UI route

Parameters​

ParameterTypeRequiredDescription
packageIdstringYes
routeIdstringYes
updatesPartial<UiRoute>Yes
workspacePathstringNo

Returns​

Promise<ProjectStructureUpdateResponse>

Example​

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

const result = await plugin.projectStructure.updateUiRoute('packageId', 'routeId', /* Partial<UiRoute> */);
console.log(result);