Hoppa till navigering

Upload Knowledge Source

Upload a file as a knowledge source

Headers

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

Förfrågan

This endpoint expects a multipart form containing a file.
filefileObligatorisk

Svar

Lyckat svar
_idstring
source_typeenumValfriStandard är file
Type of knowledge source.
Tillåtna värden:
source_urlstring or nullValfri
last_scraped_at_unixinteger or nullValfri
original_filenamestringValfriStandard är
content_typestringValfriStandard är
file_size_bytesintegerValfriStandard är 0
statusenumValfriStandard är 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.

Tillåtna värden:
error_messagestring or nullValfri
failure_reasonenum or nullValfri
Why processing a knowledge source failed.
crawl_entire_sitebooleanValfriStandard är false
scraped_pages_countintegerValfriStandard är 0
content_previewstring or nullValfri
processing_started_at_unixinteger or nullValfri
created_at_unixintegerValfri

Unix timestamp (seconds since epoch)

updated_at_unixintegerValfri

Unix timestamp (seconds since epoch)

Fel

422
Unprocessable Entity Error