curl --location --request POST 'https://api-prod.extend.app/evaluation_set_items' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <API_TOKEN>' \ --data '{ "evaluationSetId": "eval_set_123", "fileId": "file_456", "expectedOutput": { "value": { "invoice_number": "36995", "total_amount": 15735.1, "line_items": [ { "description": "Premium Widget", "quantity": 5, "unit_price": { "amount": 200.00, "iso_4217_currency_code": "USD" }, "total": { "amount": 1000.00, "iso_4217_currency_code": "USD" } }, { "description": "Basic Widget", "quantity": 10, "unit_price": { "amount": 25.05, "iso_4217_currency_code": "USD" }, "total": { "amount": 250.50, "iso_4217_currency_code": "USD" } } ] }, "metadata": {}, } }'
{ "success": true, "evaluationSetItem": { "object": "evaluation_set_item", "id": "eval_item_1234", "evaluationSetId": "eval_set_123", "fileId": "file_456", "expectedOutput": { // Output object - see “Processor output types” for details }, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-01-01T00:00:00Z" } }
Create a new evaluation set item for a given evaluation set.
value