Knowledge Bases

Retry document ingestion

Re-queue a pending or failed document for chunking + embedding. Requires the kb:manage scope.

post/v1/knowledgebases/{id}/documents/{docId}/retry

Request

  • Base URL: https://api.pyai.com
  • URL: https://api.pyai.com/v1/knowledgebases/{id}/documents/{docId}/retry
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Path parameters

idstring required
docIdstring required

Response

Re-queued for ingestion

idstring
kbIdstring
orgIdstring
source'upload' | 'url' | 'api'

upload = file, url = fetched page, api = pasted text.

uristring nullable
titlestring nullable
filenamestring nullable
mimestring nullable
sizeBytesinteger
chunksinteger

Indexed chunk count (0 until indexed).

status'pending' | 'indexed' | 'failed'
errorstring nullable

Human-readable failure/stall reason.

indexedAtinteger nullable

Unix ms.

createdAtinteger

Unix ms.

Changes

No recorded changes to this operation across all 1 revision of this API.