Naar navigatie springen

Upload Knowledge Source

Upload a file as a knowledge source

Headers

xi-api-keystringOptioneel
xi-workspace-idstring or nullOptioneel
The customer workspace a reseller's API key acts on.

Verzoek

This endpoint expects a multipart form containing a file.
filefileVerplicht

Response

Geslaagde response
_idstring
source_typeenumOptioneelStandaard file
Type of knowledge source.
Toegestane waarden:
source_urlstring or nullOptioneel
last_scraped_at_unixinteger or nullOptioneel
original_filenamestringOptioneelStandaard
content_typestringOptioneelStandaard
file_size_bytesintegerOptioneelStandaard 0
statusenumOptioneelStandaard processing

Processing status for knowledge sources.

  • processing: the file or site is being read.
  • ready: done; the results are available.
  • error: it failed and can be retried.

See progress for detail.

Toegestane waarden:
error_messagestring or nullOptioneel
failure_reasonenum or nullOptioneel
Why processing a knowledge source failed.
crawl_entire_sitebooleanOptioneelStandaard false
scraped_pages_countintegerOptioneelStandaard 0
content_previewstring or nullOptioneel
processing_started_at_unixinteger or nullOptioneel
created_at_unixintegerOptioneel

Unix timestamp (seconds since epoch)

updated_at_unixintegerOptioneel

Unix timestamp (seconds since epoch)

Fouten

422
Unprocessable Entity Error