POST
/
llm-application
/
open
/
document
/
upload_url
上传url构建知识
curl --request POST \
  --url https://open.bigmodel.cn/api/llm-application/open/document/upload_url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "upload_detail": [
    {
      "url": "<string>",
      "knowledge_type": 123,
      "custom_separator": [
        "<string>"
      ],
      "sentence_size": 123,
      "callback_url": "<string>",
      "callback_header": {}
    }
  ],
  "knowledge_id": "<string>"
}'
{
  "data": {
    "successInfos": [
      {
        "documentId": "122121212",
        "url": "xxx.com"
      },
      {
        "documentId": "12121212121",
        "url": "xxx.com"
      }
    ],
    "failedInfos": [
      {
        "url": "xxx.com",
        "failReason": "不支持的文档类型"
      }
    ]
  },
  "code": 200,
  "message": "请求成功",
  "timestamp": 1689649504996
}

Authorizations

Authorization
string
header
required

使用以下格式进行身份验证:Bearer <your api key>

Body

application/json

Response

200
application/json

请求成功

The response is of type object.