Override
Manually override the selected N-Shot value for a document-field pair by choosing a shot number. The override is recorded with a full audit trail via the API.
POST /v1/jobs/runs/{runId}/nshot/override manually overrides the selected value for a specific document-field comparison by choosing a shot number. The override is recorded with an audit trail including the actor, timestamp, original value, and new value. Use this when the majority value is incorrect and a different shot produced the right extraction.
selected_shot that exists in the comparison's values array. A shot number that matches no shot is not rejected: the override is still recorded, with to_value set to null. All API-initiated overrides record actor_id as "api"./v1/jobs/runs/{runId}/nshot/overrideBody parameters
Request
Response
Response fields
Response
{
"id": "cmp-uuid-1",
"run_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"document_id": "doc-uuid-1",
"field_name": "total_amount",
"status": "yellow",
"agreement_score": 0.6667,
"majority_value": "12450.00",
"comparison_method": "exact",
"values": [
{ "shot_number": 1, "value": "12450.00" },
{ "shot_number": 2, "value": "12450.00" },
{ "shot_number": 3, "value": "12,450.00" }
],
"override": {
"selected_shot": 1,
"actor_id": "api",
"overridden_at": "2024-09-14T11:00:00.000Z",
"from_value": "12450.00",
"to_value": "12450.00",
"reason": "Canonical decimal format preferred"
},
"judgement": null,
"created_at": "2024-09-14T10:32:00.000Z",
"links": {
"self": "/v1/jobs/runs/a1b2c3d4-e5f6-7890-abcd-ef1234567890/nshot/comparison?document_id=doc-uuid-1&field_name=total_amount"
}
}Use this when the majority value from the shots is incorrect and a different shot produced the right extraction. The override record captures a full audit trail including from_value, to_value, and overridden_at. Pair with the judge decision endpoint when you want to accept LLM recommendations programmatically instead of selecting shots manually.
Errors
Error responses