Skip to main content

updateDeployment

plugin.projectStructure.updateDeployment(packageId: string, configId: string, updates: Partial<DeploymentConfig>, workspacePath?: string): Promise<ProjectStructureUpdateResponse>

Update a deployment config

Parameters

ParameterTypeRequiredDescription
packageIdstringYes
configIdstringYes
updatesPartial<DeploymentConfig>Yes
workspacePathstringNo

Returns

Promise<ProjectStructureUpdateResponse>

Example

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

const result = await plugin.projectStructure.updateDeployment('packageId', 'configId', /* Partial<DeploymentConfig> */);
console.log(result);