POST
/
llm-application
/
open
/
document
/
upload_document
/
{id}
知识库上传文档
curl --request POST \
  --url https://open.bigmodel.cn/api/llm-application/open/document/upload_document/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form files=@example-file
{
  "data": {
    "successInfos": [
      {
        "documentId": "<string>",
        "fileName": "<string>"
      }
    ],
    "failedInfos": [
      {
        "fileName": "<string>",
        "failReason": "<string>"
      }
    ]
  },
  "code": 123,
  "message": "<string>",
  "timestamp": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

知识库id

Body

multipart/form-data

Response

200
application/json

业务处理成功

The response is of type object.