Documents

File a corrected file onto an existing document

Adds a NEW version of an existing document from base64 bytes and restarts its pipeline (conversion, then extraction, then indexing) on the new file — use this for "wrong scan, here is the right one", never for a different document (documents_upload is for that). The record, its type and its extracted fields are untouched until the new version finishes converting; poll documents_get to see status become "ready" again. Same base64 size limit as documents_upload: up to 8 MB decoded.

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

Request

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

Path parameters

idstring uuid required

The document to add a version to.

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

filenamestring required

With its extension, e.g. fattura-123.pdf.

content_base64string required

The file’s bytes, base64-encoded.

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.