Import Pipeline Metadata
client.pipelines.metadata.create(stringpipelineID, MetadataCreateParams { upload_file } body, RequestOptionsoptions?): MetadataCreateResponse
PUT/api/v1/pipelines/{pipeline_id}/metadata
Import metadata for a pipeline.
Parameters
pipelineID: string
Returns
MetadataCreateResponse = Record<string, string>
Import Pipeline Metadata
import LlamaCloud from '@llamaindex/llama-cloud';
const client = new LlamaCloud({
apiKey: process.env['LLAMA_CLOUD_API_KEY'], // This is the default and can be omitted
});
const metadata = await client.pipelines.metadata.create('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
upload_file: fs.createReadStream('path/to/file'),
});
console.log(metadata);{
"foo": "string"
}Returns Examples
{
"foo": "string"
}