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 knowledge_type=123 \
  --form 'custom_separator=[
  "<string>"
]' \
  --form sentence_size=123 \
  --form parse_image=true \
  --form 'callback_url=<string>' \
  --form 'callback_header={}' \
  --form 'word_num_limit=<string>' \
  --form 'req_id=<string>' \
  --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.