Add Data Sources To Pipeline
PUT/api/v1/pipelines/{pipeline_id}/data-sources
Add data sources to a pipeline.
Path Parameters
pipeline_id: string
Cookie Parameters
session: optional string
Body Parameters
Returns
project_id: string
Add Data Sources To Pipeline
curl https://api.cloud.llamaindex.ai/api/v1/pipelines/$PIPELINE_ID/data-sources \
-X PUT \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LLAMA_CLOUD_API_KEY" \
-d '[
{
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"sync_interval": 0
}
]'[
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"component": {
"foo": "bar"
},
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"last_synced_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "S3",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"status": "NOT_STARTED",
"status_updated_at": "2019-12-27T18:11:19.117Z",
"sync_interval": 0,
"sync_schedule_set_by": "sync_schedule_set_by",
"updated_at": "2019-12-27T18:11:19.117Z",
"version_metadata": {
"reader_version": "1.0"
}
}
]Returns Examples
[
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"component": {
"foo": "bar"
},
"data_source_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"last_synced_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"pipeline_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "S3",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"status": "NOT_STARTED",
"status_updated_at": "2019-12-27T18:11:19.117Z",
"sync_interval": 0,
"sync_schedule_set_by": "sync_schedule_set_by",
"updated_at": "2019-12-27T18:11:19.117Z",
"version_metadata": {
"reader_version": "1.0"
}
}
]