Skip to main content

updateType

client.persistentMemory.updateType(id: string, data: UpdatePersistentMemoryTypeRequest): Promise<PersistentMemoryType>

Updates an existing persistent memory type's configuration.

Modifies the type's processing steps, name, or other settings. Changes affect subsequent executions but do not alter previously generated memories.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the type to update
dataUpdatePersistentMemoryTypeRequestYesThe fields to update

Returns

Promise<PersistentMemoryType> — A promise that resolves to the updated persistent memory type

Example

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

const client = new CodeBoltClient();

const result = await client.persistentMemory.updateType('id', /* UpdatePersistentMemoryTypeRequest */);
console.log(result);