メインコンテンツへスキップ
POST
/
api
/
v1
/
files
/
documents
Upload Document
curl --request POST \
  --url http://localhost:5300/api/v1/files/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "code": 0,
  "msg": "ok",
  "data": {
    "file_id": "<string>"
  }
}

承認

Authorization
string
header
必須

Bearer token authentication. Can be either a user JWT token or an API key. Example: Authorization: Bearer <token_or_key>

ボディ

multipart/form-data
file
file
必須

Document file

レスポンス

200 - application/json

Upload successful

code
integer
:

0

msg
string
:

"ok"

data
object