Add a Dataset or Domain source to a knowledge base
POST/ai/knowledgebases/:id/resources
Attaches one Dataset or Domain source. Requires editor access on the knowledge base and on the dataset or domain. Unstructured knowledge bases allow at most 5 sources and accept optional ChunkingConfiguration (default NONE) and ParsingConfiguration (default DEFAULT). Structured knowledge bases ignore chunking/parsing; the dataset TargetLocation must match the knowledge base DataStoreType. Datasets must be internal (not Hudi or Iceberg).
Request
Responses
- 200
- 400
- 500
Source added. Unstructured responses include SourceId; structured responses include KnowledgebaseId. Message names the attached resource.
Response Headers
Input validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure. Body is {"Message": " -