Skip to main content

unarchiveJsonThread

client.memory.unarchiveJsonThread(threadId: string): Promise<unknown>

Restores an archived JSON thread back to active status.

Parameters

ParameterTypeRequiredDescription
threadIdstringYesThe unique identifier of the JSON thread to unarchive

Returns

Promise<unknown> — A promise that resolves when the thread has been unarchived

Example

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

const client = new CodeBoltClient();

const result = await client.memory.unarchiveJsonThread('threadId');
console.log(result);