Skip to main content

updateJsonThreadData

client.memory.updateJsonThreadData(threadId: string, data: UpdateJsonDataRequest): Promise<unknown>

Replaces the JSON data payload of a thread.

Updates the structured data stored in the JSON thread. This is separate from metadata updates to allow efficient data-only writes.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the JSON thread
dataUpdateJsonDataRequestYesThe new JSON data to store

Returns

Promise<unknown> — A promise that resolves when the data has been updated

Example

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

const client = new CodeBoltClient();

const result = await client.memory.updateJsonThreadData('threadId', /* UpdateJsonDataRequest */);
console.log(result);