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
extractionSchemaId
stringThe unique identifier of the extraction schema used for processing.
fileId
stringThe 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.
acceptAll
booleanSet to true
to accept all extracted rows without modifications.
tables
objectObject containing granular corrections for specific tables. Keys are table IDs, values contain arrays of deletedRowIds, updatedRows, and newRows.
Authorization
stringBearer token for authentication. Format: Bearer your-api-token-here
Content-Type
stringMust 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.
rowsAccepted
Number of rows that were accepted
rowsDeleted
Number of rows that were deleted
rowsUpdated
Number of rows that were modified
rowsAdded
Number of new rows that were added
tablesAffected
List of table IDs that were modified