---
title: "批量下载知识文件"
method: POST
path: "/knowledge-bases/{id}/knowledge/batch-download"
tags: ["知识管理"]
---

# 批量下载知识文件

`POST /knowledge-bases/{id}/knowledge/batch-download`

将同一知识库的最多 200 个文档打包为 ZIP，原始内容合计不超过 512 MiB。无原文件的条目会被跳过；无权访问、跨库或读取失败时不返回残缺压缩包。

## Path parameters

- `id` string, required

## Request body

- InternalHandlerBatchDownloadKnowledgeRequest
  - `ids` string[], required

## Response `200`

ZIP 压缩包

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2026-09-16** `9ebec8559e44` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge-bases/:id/knowledge/batch-download/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/710d29c05955?raw)
