跳转到主要内容
POST
/
datasets
/
{dataset_id}
/
metadata
Error
A valid request URL is required to generate request examples
{
  "id": "b5c6d7e8-f9a0-1b2c-3d4e-5f6a7b8c9d0e",
  "name": "author",
  "type": "string"
}

授权

Authorization
string
header
必填

API Key 认证。对于所有 API 请求,请在 Authorization HTTP 头中包含您的 API Key,并加上 Bearer 前缀。示例:Authorization: Bearer {API_KEY}强烈建议将 API Key 存储在服务端,不要在客户端共享或存储,以避免 API Key 泄漏导致严重后果。

路径参数

dataset_id
string<uuid>
必填

知识库 ID。

请求体

application/json
type
enum<string>
必填

string 为文本值,number 为数值,time 为日期/时间值。

可用选项:
string,
number,
time
name
string
必填

元数据字段名称。

响应

201 - application/json

元数据字段创建成功。

id
string

元数据字段标识符。

name
string

元数据字段名称。

type
string

元数据字段类型。