Skip to main content

duplicatePipeline

client.memoryIngestion.duplicatePipeline(id: string, data?: DuplicateIngestionPipelineRequest): Promise<IngestionPipeline>

Creates a copy of an existing ingestion pipeline.

Duplicates the pipeline configuration, optionally with modifications. Useful for creating variations of working pipelines without starting from scratch.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the pipeline to duplicate
dataDuplicateIngestionPipelineRequestNoOptional modifications to apply to the duplicated pipeline

Returns

Promise<IngestionPipeline> — A promise that resolves to the newly created duplicate pipeline

Example

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

const client = new CodeBoltClient();

const result = await client.memoryIngestion.duplicatePipeline('id');
console.log(result);