Documents
Update
Update the ground truth of a specific document within an evaluation.
PUT
/
v1
/
evals
/
{evaluation_id}
/
documents
/
{document_id}
Copy
curl --request PUT \
--url https://api.uiform.com/v1/evals/{evaluation_id}/documents/{document_id} \
--header 'Content-Type: application/json' \
--data '{
"annotation": {},
"annotation_metadata": {
"extraction_id": "<string>",
"likelihoods": {},
"field_locations": {},
"agentic_field_locations": {},
"consensus_details": [
{}
],
"api_cost": {
"value": 123,
"currency": "<string>"
}
}
}'
Copy
{
"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>"
}
Authorizations
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Copy
curl --request PUT \
--url https://api.uiform.com/v1/evals/{evaluation_id}/documents/{document_id} \
--header 'Content-Type: application/json' \
--data '{
"annotation": {},
"annotation_metadata": {
"extraction_id": "<string>",
"likelihoods": {},
"field_locations": {},
"agentic_field_locations": {},
"consensus_details": [
{}
],
"api_cost": {
"value": 123,
"currency": "<string>"
}
}
}'
Copy
{
"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>"
}
Assistant
Responses are generated using AI and may contain mistakes.