from retab import Retab client = Retab() response = client.projects.documents.update("<project_id>", "<document_id>", annotation={"invoice_number": "54321"})
{ "mime_data": { "filename": "file.pdf", "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." }, "annotation": {}, "annotation_metadata": { "extraction_id": "<string>", "likelihoods": {}, "field_locations": {}, "agentic_field_locations": {}, "consensus_details": [ {} ], "api_cost": { "value": 123, "currency": "<string>" } }, "id": "<string>", "ocr_file_id": "<string>" }
Update the ground truth of a specific document within an evaluation with field-level conflict detection.
Enhanced document patch request with conflict detection support.
Successful Response
The response is of type object.
object