Skip to main content

complete

client.fileUpdateIntents.complete(id: string, data?: CompleteFileUpdateIntentRequest): Promise<unknown>

Marks a file update intent as complete.

Finalizes an intent after all file modifications are finished. This releases locks and records the successful completion of the update operation.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the intent
dataCompleteFileUpdateIntentRequestNoOptional completion parameters

Returns

Promise<unknown> — A promise that resolves when the intent is marked complete

Example

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

const client = new CodeBoltClient();

const result = await client.fileUpdateIntents.complete('id');
console.log(result);