Update Data Source
Update a data source by ID.
ParametersExpand Collapse
DataSourceUpdateParams params
Optional<Component> component
Component that implements the data source
class CloudAzStorageBlobDataSource:
class CloudSharepointDataSource:
Optional<List<String>> excludePathPatterns
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$’, ’^~’]
class CloudConfluenceDataSource:
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
Optional<Boolean> syncPermissions
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.
class CloudJiraDataSource:
class CloudJiraDataSourceV2:
class CloudBoxDataSource:
ReturnsExpand Collapse
class DataSource:
Schema for a data source.
Component component
Component that implements the data source
class CloudAzStorageBlobDataSource:
class CloudSharepointDataSource:
Optional<List<String>> excludePathPatterns
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$’, ’^~’]
class CloudConfluenceDataSource:
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
Optional<Boolean> syncPermissions
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.
class CloudJiraDataSource:
class CloudJiraDataSourceV2:
class CloudBoxDataSource:
Update Data Source
package ai.llamaindex.llamacloud.example;
import ai.llamaindex.llamacloud.client.LlamaCloudClient;
import ai.llamaindex.llamacloud.client.okhttp.LlamaCloudOkHttpClient;
import ai.llamaindex.llamacloud.models.datasources.DataSource;
import ai.llamaindex.llamacloud.models.datasources.DataSourceUpdateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();
DataSourceUpdateParams params = DataSourceUpdateParams.builder()
.dataSourceId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
.sourceType(DataSourceUpdateParams.SourceType.AZURE_STORAGE_BLOB)
.build();
DataSource dataSource = client.dataSources().update(params);
}
}{
"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"
}
}