---
title: "Update Eval Record"
method: PUT
path: "/eval_configs/{id}/records/{recordId}"
---

# Update Eval Record

`PUT /eval_configs/{id}/records/{recordId}`

## Request

- Base URL: `https://api.vogent.ai/api`
- URL: `https://api.vogent.ai/api/eval_configs/{id}/records/{recordId}`
- Auth: HTTP bearer

Updates an AI evaluation record. Only available for prompt-type records.

## Request body

- UpdateAIEvalRecordInput
  - `name` string: The name of the prompt.
  - `description` string: The description of the prompt.
  - `systemPrompt` string: The system prompt.
  - `maxTurns` integer: The maximum number of conversation turns.
  - `agentInputs` string: JSON object of key-value pairs injected as agent variables.

## Response `200`

Successful operation

- AIEvalRecord
  - `id` string, required
  - `recordType` 'DIAL' | 'PROMPT', required: The type of evaluation record.
  - `dialId` string, nullable
  - `prompt` AIEvalPrompt
    - `id` string, required
    - `name` string, nullable
    - `description` string, nullable
    - `systemPrompt` string, required
    - `maxTurns` integer, required
    - `agentInputs` string, nullable
    - `createdAt` string, date-time, required

## Other responses

- `400`: Invalid input
- `422`: Validation exception

---

[API](https://skmtc.dev/vogent/apis/vogent-openapi-3-0.md) - [All operations](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/llms.txt) - [OpenAPI document](https://skmtc.dev/vogent/apis/vogent-openapi-3-0/revisions/a5966cc364ef?raw)
