Skip to main content
POST
/
api
/
knowledge
/
bases
/
{id}
/
documents
Create Knowledge Bases Documents
curl --request POST \
  --url https://api.example.com/api/knowledge/bases/{id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "file": "File",
  "sourceType": "<string>",
  "enableContextualRetrieval": "<string>"
}
'

Authorizations

Authorization
string
header
required

Logto JWT access token

Path Parameters

id
string
required

Body

file
file
default:File
required
sourceType
string
enableContextualRetrieval
string
processingModel
object
columnMapping
object

Response

200

Successful response