Skip to main content

updateEnvironment

client.environments.updateEnvironment(id: string, data: UpdateEnvironmentRequest): Promise<Environment>

Updates an existing environment's configuration.

Modifies environment settings such as name, resource allocations, or other configurable properties.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the environment to update
dataUpdateEnvironmentRequestYesThe fields to update on the environment

Returns​

Promise<Environment> — A promise that resolves to the updated

Example​

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

const client = new CodeBoltClient();

const result = await client.environments.updateEnvironment('id', /* UpdateEnvironmentRequest */);
console.log(result);