importType
client.persistentMemory.importType(data: ImportPersistentMemoryRequest): Promise<PersistentMemoryType>
Imports a persistent memory type configuration from an exported format.
Creates a new persistent memory type from previously exported data. This enables sharing pipeline configurations between workspaces or restoring from backups.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | ImportPersistentMemoryRequest | Yes | The import payload containing the exported type configuration |
Returns
Promise<PersistentMemoryType> — A promise that resolves to the newly imported persistent memory type
Example
import { CodeBoltClient } from '@codebolt/clientsdk';
const client = new CodeBoltClient();
const result = await client.persistentMemory.importType(/* ImportPersistentMemoryRequest */);
console.log(result);