Skip to main content

create

client.fileUpdateIntents.create(data: CreateFileUpdateIntentRequest): Promise<FileUpdateIntent>

Creates a new file update intent.

Registers an intent to modify specified files on behalf of an agent. The intent coordinates access to prevent conflicts with other concurrent modifications.

Parameters

ParameterTypeRequiredDescription
dataCreateFileUpdateIntentRequestYesRequest containing intent creation details

Returns

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

Example

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

const client = new CodeBoltClient();

const result = await client.fileUpdateIntents.create(/* CreateFileUpdateIntentRequest */);
console.log(result);