> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extend.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Evaluation Set Item

> Update an evaluation set item by ID.

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

<ParamField path="id" type="string">
  The ID of the evaluation set item to update.
</ParamField>

### Body

<ParamField body="expectedOutput" default="{ hi: 'hi' }" type="object" required>
  The expected output of the processor when run against the file. This should be
  a JSON object conforming to the [output type
  schema](/api-reference/guides/output_types) of the processor.
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  A true or false value for whether the evaluation set item was created
  successfully or not.
</ResponseField>

<ResponseField name="evaluationSetItem" type="EvaluationSetItem">
  An EvaluationSetItem object representing the newly created evaluation set
  item. See the [EvaluationSetItem
  object](/api-reference/objects/evaluation_set_item) for more details.
</ResponseField>

<ResponseExample>
  ```json Example Response theme={null}
  {
    "success": true,
    "evaluationSetItem": {
      "object": "evaluation_set_item",
      "id": "eval_item_1234",
      "evaluationSetId": "eval_set_1234",
      "fileId": "file_1234",
      "expectedOutput": {
        // Output object - see “Processor output types” for details
      },
      "createdAt": "2024-01-01T00:00:00Z",
      "updatedAt": "2024-01-01T00:00:00Z"
    }
  }
  ```
</ResponseExample>
