Update Data Source
Update a data source by ID.
ParametersExpand Collapse
body: DataSourceUpdateParams { source_type, component, custom_metadata, name }
component?: Record<string, unknown> | CloudS3DataSource { bucket, aws_access_id, aws_access_secret, 5 more } | CloudAzStorageBlobDataSource { account_url, container_name, account_key, 8 more } | 9 more | null
Component that implements the data source
CloudAzStorageBlobDataSource { account_url, container_name, account_key, 8 more }
CloudSharepointDataSource { client_id, client_secret, tenant_id, 11 more }
exclude_path_patterns?: Array<string> | null
List of regex patterns for file paths to exclude. Files whose paths (including filename) match any pattern will be excluded. Example: [‘/temp/’, ‘/backup/’, ‘.git/’, ‘.tmp$’, ’^~’]
CloudConfluenceDataSource { authentication_mechanism, server_url, api_token, 11 more }
Configuration for handling failures during processing. Key-value object controlling failure handling behaviors.
Example: { “skip_list_failures”: true }
Currently supports:
- skip_list_failures: Skip failed batches/lists and continue processing
sync_permissions?: boolean
Whether to fetch space-level permissions (allowed users/groups) and attach them to document metadata for access control. Disable for Confluence Server/Data Center versions whose permission APIs are unavailable (e.g. the JSON-RPC API removed in Data Center 9.2.6+), which otherwise surface as 401 errors during sync.
CloudJiraDataSource { authentication_mechanism, query, api_token, 5 more }
CloudJiraDataSourceV2 { authentication_mechanism, query, server_url, 10 more }
CloudBoxDataSource { authentication_mechanism, class_name, client_id, 6 more }
ReturnsExpand Collapse
DataSource { id, component, name, 6 more }
Schema for a data source.
component: Record<string, unknown> | CloudS3DataSource { bucket, aws_access_id, aws_access_secret, 5 more } | CloudAzStorageBlobDataSource { account_url, container_name, account_key, 8 more } | 9 more
Component that implements the data source
CloudAzStorageBlobDataSource { account_url, container_name, account_key, 8 more }
CloudSharepointDataSource { client_id, client_secret, tenant_id, 11 more }
exclude_path_patterns?: Array<string> | null
List of regex patterns for file paths to exclude. Files whose paths (including filename) match any pattern will be excluded. Example: [‘/temp/’, ‘/backup/’, ‘.git/’, ‘.tmp$’, ’^~’]
CloudConfluenceDataSource { authentication_mechanism, server_url, api_token, 11 more }
Configuration for handling failures during processing. Key-value object controlling failure handling behaviors.
Example: { “skip_list_failures”: true }
Currently supports:
- skip_list_failures: Skip failed batches/lists and continue processing
sync_permissions?: boolean
Whether to fetch space-level permissions (allowed users/groups) and attach them to document metadata for access control. Disable for Confluence Server/Data Center versions whose permission APIs are unavailable (e.g. the JSON-RPC API removed in Data Center 9.2.6+), which otherwise surface as 401 errors during sync.
CloudJiraDataSource { authentication_mechanism, query, api_token, 5 more }
CloudJiraDataSourceV2 { authentication_mechanism, query, server_url, 10 more }
CloudBoxDataSource { authentication_mechanism, class_name, client_id, 6 more }
custom_metadata?: Record<string, Record<string, unknown> | Array<unknown> | string | 2 more | null> | null
Update Data Source
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 dataSource = await client.dataSources.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', {
source_type: 'AZURE_STORAGE_BLOB',
});
console.log(dataSource.id);{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"component": {
"foo": "bar"
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "AZURE_STORAGE_BLOB",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"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"
},
"name": "name",
"project_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"source_type": "AZURE_STORAGE_BLOB",
"created_at": "2019-12-27T18:11:19.117Z",
"custom_metadata": {
"foo": {
"foo": "bar"
}
},
"updated_at": "2019-12-27T18:11:19.117Z",
"version_metadata": {
"reader_version": "1.0"
}
}