Vai alla navigazione

Add Url Source

Add a URL as a knowledge source

Header

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

Richiesta

This endpoint expects an object.
urlstringObbligatorioformat: "uri"1-2048 characters
crawl_entire_sitebooleanOpzionalePredefinito a false

Risposta

Risposta riuscita
_idstring
source_typeenumOpzionalePredefinito a file
Type of knowledge source.
Valori consentiti:
source_urlstring or nullOpzionale
last_scraped_at_unixinteger or nullOpzionale
original_filenamestringOpzionalePredefinito a
content_typestringOpzionalePredefinito a
file_size_bytesintegerOpzionalePredefinito a 0
statusenumOpzionalePredefinito a 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.

Valori consentiti:
error_messagestring or nullOpzionale
failure_reasonenum or nullOpzionale
Why processing a knowledge source failed.
crawl_entire_sitebooleanOpzionalePredefinito a false
scraped_pages_countintegerOpzionalePredefinito a 0
content_previewstring or nullOpzionale
processing_started_at_unixinteger or nullOpzionale
created_at_unixintegerOpzionale

Unix timestamp (seconds since epoch)

updated_at_unixintegerOpzionale

Unix timestamp (seconds since epoch)

Errori

422
Unprocessable Entity Error