Skip to main content
POST
/
v1
/
knowledge-bases
/
{knowledge_base_id}
/
generic_train
Generic Train Knowledge Base
curl --request POST \
  --url https://api.example.com/v1/knowledge-bases/{knowledge_base_id}/generic_train \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "source": {
    "config": {
      "files": [
        {
          "uri": "<string>",
          "name": "<string>",
          "id": "<string>",
          "content_type": "text/plain",
          "source_type": "Document",
          "source_metadata": {}
        }
      ]
    },
    "source_type": "Document",
    "subtype": "<string>",
    "config_cls": "<unknown>",
    "integration": "<string>",
    "image": "",
    "name": "File",
    "exposed": false
  }
}
'
[
  "3c90c3cc-0d44-4b50-8888-8dd25736052a"
]

Authorizations

X-API-Key
string
header
required

Path Parameters

knowledge_base_id
string<uuid>
required

Query Parameters

prefix
string
default:/

The path prefix where to upload

Body

application/json
source
DocumentSource · object
required

Response

Successful Response