Documents

Re-run the pipeline on a document

Re-runs conversion, extraction or indexing on a document’s CURRENT version — for when the automatic result was wrong and re-running it (after a settings correction, say) might do better. from picks where the pipeline restarts; anything past convert needs the document to have converted at least once already, and is refused otherwise. This re-spends the same processing an upload does, so use it deliberately rather than as a first response to one wrong field — documents_update_metadata is instant and free for that.

post/api/v1/rest/documents/{id}/reprocess

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/documents/{id}/reprocess
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Request body

from'convert' | 'extract' | 'index'

Which stage to restart from. Default convert, the safest choice.

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

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