/v2/gen-ai/knowledge_bases/{knowledge_base_uuid}/data_sourcesAdd a data source to a knowledge base
Adds a data source configuration to a knowledge base. Supply the source-specific settings for an AWS S3 bucket, Spaces bucket, or web crawler, and optionally configure chunking. Use this operation to add sources after creating a knowledge base or to attach a source during a later update.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional data source configuration, including source-specific settings and chunking options.
A 401 is returned when authentication credentials are invalid. A 404 is returned if the knowledge_base_uuid path parameter does not identify an existing knowledge base or the requested resource cannot be found; a 429 is returned when the API rate limit is exceeded, and a 500 indicates a server error. chunking_algorithm and web_crawler_data_source.crawling_option must use one of their documented enum values when supplied.