Skip to main content

update

client.fileUpdateIntents.update(id: string, data: UpdateFileUpdateIntentRequest): Promise<FileUpdateIntent>

Updates an existing file update intent.

Modifies the properties, files, or status of an existing intent. Use this to extend file ranges, update metadata, or change intent configuration as operations progress.

Parameters​

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the intent to update
dataUpdateFileUpdateIntentRequestYesRequest containing the intent updates to apply

Returns​

Promise<FileUpdateIntent> — A promise that resolves to the updated FileUpdateIntent object

Example​

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

const client = new CodeBoltClient();

const result = await client.fileUpdateIntents.update('id', /* UpdateFileUpdateIntentRequest */);
console.log(result);