Knowledge

Retry a document

POST
/api/v1/knowledge/documents/{doc_id}/retry

Queues a resting document again (indexed, partial, failed, skipped, paused or blocked). 409 while it is being worked on.

More in Knowledge API.

apiKey
headerAuthorizationBearer <token>

An API key, sk-syn- and 32 characters. On SynapseOrch Cloud an owner or admin makes it under Settings → Developer; on a self-hosted install, under Settings → API Keys.

doc_id*string

Response Body

Successful Response

application/json
  1. response
id*string
kb_id*string
path*string
source*string
Value in"upload""web""record""vault"
source_url?string|null
status*string
Value in"queued""parsing""indexing""indexed""partial""failed""skipped""paused""blocked""deleting"
status_reason?string|null
error?string|null
version?integer
Default0
sha256?string|null
size_bytes?integer|null
mime?string|null
title?string|null
doc_date?string|null
metadata?
pages?integer|null
chunks?integer|null
tokens?integer|null
created_at?string|null
updated_at?string|null
indexed_at?string|null
progress?|null
curl -X POST "https://api.synapseorch.com/api/v1/knowledge/documents/kdoc_01a10f6c8e0a2c4e6a8c0e2a4c6e8a0c/retry" \  -H "Authorization: Bearer sk-syn-..."
{  "id": "string",  "kb_id": "string",  "path": "string",  "source": "upload",  "source_url": "string",  "status": "queued",  "status_reason": "string",  "error": "string",  "version": 0,  "sha256": "string",  "size_bytes": 0,  "mime": "string",  "title": "string",  "doc_date": "string",  "metadata": {},  "pages": 0,  "chunks": 0,  "tokens": 0,  "created_at": "string",  "updated_at": "string",  "indexed_at": "string",  "progress": {    "stage": "parse",    "done": 0,    "total": 0,    "unit": "pages",    "eta_s": 0,    "waiting": {      "reason": "rate_limited",      "provider": "string",      "provider_id": "string",      "until": "string"    },    "updated_at": "string"  }}