---
title: "从URL创建知识"
method: POST
path: "/knowledge-bases/{id}/knowledge/url"
tags: ["知识管理"]
---

# 从URL创建知识

`POST /knowledge-bases/{id}/knowledge/url`

从指定URL抓取内容并创建知识条目。当提供 file_name/file_type 或 URL 路径含已知文件扩展名时，自动切换为文件下载模式

## Path parameters

- `id` string, required

## Request body

- object
  - `enable_multimodel` boolean
  - `file_name` string
  - `file_type` string
  - `tag_ids` string[]
  - `title` string
  - `url` string

## Response `201`

创建的知识

- object

## Other responses

- `400` — 请求参数错误
- `409` — URL重复

## Changes

> 62 revisions in range; 11 could not be searched.

- **2025-12-22** `e625bcd5b8b9` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was added to the API
- **2025-12-16** `edf61e68559d` — 1 info
  - the endpoint scheme security `ApiKeyAuth` was removed from the API

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge-bases/:id/knowledge/url/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-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/a5ce73ad8921/schema)
