Skip to main content

mergePatch

client.environments.mergePatch(id: string, data: MergePatchRequest): Promise<unknown>

Merges a patch into the environment's project files.

Applies a set of file changes (additions, modifications, deletions) to the environment in a single atomic operation.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the environment
dataMergePatchRequestYesThe patch payload describing file changes to apply

Returns

Promise<unknown> — A promise that resolves when the patch has been applied

Example

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

const client = new CodeBoltClient();

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