Skip to main content

updateMarkdownThreadContent

client.memory.updateMarkdownThreadContent(threadId: string, data: UpdateMarkdownContentRequest): Promise<unknown>

Replaces the markdown content of a thread.

Updates the actual markdown text content stored in the thread. This is separate from metadata updates to allow efficient content-only writes.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the markdown thread
dataUpdateMarkdownContentRequestYesThe new markdown content

Returns

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

Example

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

const client = new CodeBoltClient();

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