Submit Corrections
Accept or modify the extracted data from document processing. This endpoint supports both accepting all results at once or making granular corrections including deleting, updating, and adding new rows.
Request Parameters
extractionSchemaIdstringThe unique identifier of the extraction schema used for processing.
fileIdstringThe unique identifier of the processed file (returned from process-file endpoint).
The request body must contain either acceptAll: true for accepting all extracted data, or a tables object for granular corrections.
acceptAllbooleanSet to true to accept all extracted rows without modifications.
tablesobjectObject containing granular corrections for specific tables. Keys are table IDs, values contain arrays of deletedRowIds, updatedRows, and newRows.
AuthorizationstringBearer token for authentication. Format: Bearer your-api-token-here
Content-TypestringMust be set to application/json.
Data Types and Expected Formats
When submitting cell values, ensure they match the expected format for each column type. The API will automatically validate and format values according to these specifications.
Code Examples
Make specific changes to extracted data including deletions, updates, and additions.
Response
Returns the updated data with row statuses changed to "ACCEPTED" and a summary of changes made.
Common error responses you might encounter.
Summary Object
The response includes a summary object with statistics about the changes made.
rowsAcceptedNumber of rows that were accepted
rowsDeletedNumber of rows that were deleted
rowsUpdatedNumber of rows that were modified
rowsAddedNumber of new rows that were added
tablesAffectedList of table IDs that were modified