탐색으로 건너뛰기

Add Url Source

Add a URL as a knowledge source

헤더

xi-api-keystring선택 사항
xi-workspace-idstring or null선택 사항
The customer workspace a reseller's API key acts on.

요청

This endpoint expects an object.
urlstring필수형식: "uri"1-2048 characters
crawl_entire_siteboolean선택 사항기본값 false

응답

성공 응답

_idstring
source_typeenum선택 사항기본값 file
Type of knowledge source.
허용된 값:
source_urlstring or null선택 사항
last_scraped_at_unixinteger or null선택 사항
original_filenamestring선택 사항기본값
content_typestring선택 사항기본값
file_size_bytesinteger선택 사항기본값 0
statusenum선택 사항기본값 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.

허용된 값:
error_messagestring or null선택 사항
failure_reasonenum or null선택 사항
Why processing a knowledge source failed.
crawl_entire_siteboolean선택 사항기본값 false
scraped_pages_countinteger선택 사항기본값 0
content_previewstring or null선택 사항
processing_started_at_unixinteger or null선택 사항
created_at_unixinteger선택 사항

Unix timestamp (seconds since epoch)

updated_at_unixinteger선택 사항

Unix timestamp (seconds since epoch)

오류

422
Unprocessable Entity Error