Authorizations
DashScope API Key, obtained from the API Key page in the console.
Body
application/jsonKnowledge Base ID.
List of category IDs. Required when sourceType is DATA_CENTER_CATEGORY.
Source type (optional). DATA_CENTER_CATEGORY imports by category (requires categoryIds); DATA_CENTER_FILE imports by file (requires docIds). If omitted, every file in the data center is imported — use with caution.
List of file IDs. Required when sourceType is DATA_CENTER_FILE. The parameter name is docIds — not documentIds or fileIds. Using a wrong name causes the server to silently ignore the parameter and return Index.InvalidParameter (Required parameter(dataSource.fileIds) missing).
Chunking mode for setting a segmentation strategy for this import independently from the Knowledge Base's global config. h1–h5 chunk by heading level (h1 = level 1, up to h5 = level 5); length by fixed length; page by page; regex by custom regex.
Chunk size (characters), range 1–6000. Required when chunkMode is length; when chunkMode is h1–h5, if specified it is taken into account (defaults to 500 if omitted).
Chunk overlap size (characters), range 0–1024. Only effective when chunkMode is length; ignored for heading-based chunking (h1–h5).
Chunk separator. Only effective when chunkMode is regex; required when chunkMode is regex, otherwise returns Index.InvalidParameter (Separator can't be null).
Whether to enable header extraction. Default false.