Skip to main content

updateJsonThread

client.memory.updateJsonThread(threadId: string, data: UpdateJsonThreadRequest): Promise<MemoryThread>

Updates the metadata of a JSON thread (name, tags, etc.).

Modifies thread-level properties without changing the stored JSON data. Use to change the actual data payload.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the JSON thread to update
dataUpdateJsonThreadRequestYesThe metadata fields to update

Returns

Promise<MemoryThread> — A promise that resolves to the updated JSON thread

Example

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

const client = new CodeBoltClient();

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