For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Book a demoLog in
ProductAPI ReferenceChangelogModel Versioning
ProductAPI ReferenceChangelogModel Versioning
    • Authentication
    • API Versioning
  • Workflow Endpoints
    • Run Workflow
    • Workflow Run
    • List Workflow Runs
    • Update Workflow Run
    • Create Workflow
    • Batch Run Workflow
    • Correct Workflow Run (Deprecated)
  • Processor Endpoints
    • Run Processor
    • Get Processor Run
    • Batch Processor Run
    • Create Processor
    • Update Processor
    • Publish Processor Version
    • Processor Version
    • List Processor Versions
  • Parse Endpoints
    • Parse File
  • File Endpoints
    • Upload File
    • Get File
    • List Files
    • Create File (Deprecated)
  • Evaluation Set Endpoints
    • Create Evaluation Set
    • Create Evaluation Set Item
    • Update Evaluation Set Item
    • Bulk Create Evaluation Set Item
  • Objects
    • Block
    • Evaluation Set
    • Evaluation Set Item
    • File
    • Processor
    • Processor Run
    • Batch Processor Run
    • Processor Version
    • Workflow
    • Workflow Run
    • Workflow Run Summary
  • Guides
    • Processor Configs
    • Output Types
    • Bounding Boxes
    • Supported File Types
    • Rate Limits
    • User Roles and Permissions
  • Webhooks
    • Configuration
    • Events
LogoLogo
Book a demoLog in
Evaluation Set Endpoints

Update Evaluation Set Item

Update an evaluation set item by ID.
1curl --request POST \
2 --url https://api-prod.extend.app/evaluation_set_items/:id \
3 --header 'Authorization: Bearer <token>' \
4 --header 'Content-Type: application/json' \
5 --data '{
6 "expectedOutput": {}
7}'
Example Response
1{
2 "success": true,
3 "evaluationSetItem": {
4 "object": "evaluation_set_item",
5 "id": "eval_item_1234",
6 "evaluationSetId": "eval_set_1234",
7 "fileId": "file_1234",
8 "expectedOutput": {
9 // Output object - see “Processor output types” for details
10 },
11 "createdAt": "2024-01-01T00:00:00Z",
12 "updatedAt": "2024-01-01T00:00:00Z"
13 }
14}
Was this page helpful?
Previous

Bulk Create Evaluation Set Items

Create evaluation set items for a given evaluation set in bulk.
Next
Built with

If you need to change the expected output for a given evaluation set item, you can use this endpoint to update the item. This can be useful if you need to correct an error in the expected output or if the output of the processor has changed.

Parameters

id
string

The ID of the evaluation set item to update.

Body

expectedOutput
objectDefaults to { hi: 'hi' }Required

The expected output of the processor when run against the file. This should be a JSON object conforming to the output type schema of the processor.

Response

success
boolean

A true or false value for whether the evaluation set item was created successfully or not.

evaluationSetItem
EvaluationSetItem

An EvaluationSetItem object representing the newly created evaluation set item. See the EvaluationSetItem object for more details.