---
title: "Append To Evaluation Dataset"
method: PUT
path: "/agents/{agent_id}/datasets/evaluate/{dataset_name}"
tags: ["/agents/{id}/datasets/evaluate"]
---

# Append To Evaluation Dataset

`PUT /agents/{agent_id}/datasets/evaluate/{dataset_name}`

Append to an existing evaluation `Dataset`.

Create a new version of the dataset by appending content to the `Dataset` and validating against its schema.

File schema for `dataset_type` `evaluation_set` is a CSV file or a JSONL file where each line is one JSON object. The following keys are required:

- `prompt` (`string`): Prompt or question

- `reference` (`string`): Reference or ground truth response

## Path parameters

- `agent_id` string, uuid, required — Agent ID associated with the evaluation dataset
- `dataset_name` string, required — Name of the evaluation dataset to append to

## Response `200`

Successful Response

- CreateDatasetResponse — Response to POST /datasets request
  - `version` string, required — Version number of the dataset
  - `name` string, required — Name of the dataset
  - `type` 'tuning_set' | 'evaluation_set' | 'evaluation_set_prediction' | 'evaluation_run_result', required

## Other responses

- `422` — Validation Error

## Changes

- **2025-01-15** `4ed32c3243ce` — 2 info
  - api tag `/agents/{id}/datasets/evaluate` added
  - api tag `/agents/{id}/datasets` removed
- **2025-01-14** `448bcb901d30` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/contextualai/apis/endpoints/changes/agents/:agent_id/datasets/evaluate/:dataset_name/put.md)

---

[API](https://skmtc.dev/contextualai/apis/endpoints.md) · [All operations](https://skmtc.dev/contextualai/apis/endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/contextualai/endpoints/revisions/17bdb8a33fb4/schema)
