Zum Hauptinhalt springen
POST
/
knowledgeSource
/
filesConnector
/
{id}
/
replace
Replace the binary of a file
curl --request POST \
  --url https://demo.enneo.ai/api/mind/knowledgeSource/filesConnector/{id}/replace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "success": true,
  "id": 42
}

Autorisierungen

Authorization
string
header
erforderlich

JWT-based authentication

Pfadparameter

id
integer
erforderlich

Knowledge source ID

Body

multipart/form-data
file
file
erforderlich

New binary that should back this knowledge source.

Antwort

File replaced successfully

success
boolean
Beispiel:

true

id
integer

ID of the created knowledge_sources row

Beispiel:

42