Skip to main content

Microsoft OneDrive

Load data from Microsoft OneDrive

Configure via UI

OneDrive

Configure via API / Client

from llama_cloud.types import CloudOneDriveDataSource

ds = {
'name': '<your-name>',
'source_type': 'MICROSOFT_ONEDRIVE',
'component': CloudOneDriveDataSource(
user_principal_name='<user_principal_name>',
folder_path='<folder_path>', # optional
folder_id='<folder_id>', # optional
client_id='<client_id>',
client_secret='<client_secret>',
tenant_id='<tenant_id>',
)
}
data_source = client.data_sources.create_data_source(request=ds)