---
title: "PATCH /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations/{evalUuid}"
method: PATCH
path: "/api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations/{evalUuid}"
---

# PATCH /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations/{evalUuid}

`PATCH /api/v1/projects/{projectUuid}/aiAgents/{agentUuid}/evaluations/{evalUuid}`

## Path parameters

- `projectUuid` string, required
- `agentUuid` string, required
- `evalUuid` string, required

## Request body

- ApiUpdateEvaluationRequest
  - `prompts` CreateEvaluationPrompt[]
    - union — Represents a prompt for evaluation that can be either: - An object with a prompt string for new prompts - An object referencing an existing prompt and thread by their UUIDs
      - object
        - `expectedResponse` string, nullable, required
        - `prompt` string, required
      - object
        - `expectedResponse` string, nullable, required
        - `threadUuid` string, required
        - `promptUuid` string, required
  - `description` string
  - `title` string

## Response `200`

Success

- ApiAiAgentEvaluationResponse
  - `results` AiAgentEvaluation, required
    - `prompts` AiAgentEvaluationPrompt[], required
      - union
        - object
          - `createdAt` string, date-time, required
          - `evalPromptUuid` string, required
          - `expectedResponse` string, nullable, required
          - `prompt` string, required
          - `type` 'string', required
        - object
          - `createdAt` string, date-time, required
          - `evalPromptUuid` string, required
          - `expectedResponse` string, nullable, required
          - `threadUuid` string, required
          - `promptUuid` string, required
          - `type` 'thread', required
    - `updatedAt` string, date-time, required
    - `createdAt` string, date-time, required
    - `description` string, nullable, required
    - `title` string, required
    - `agentUuid` string, required
    - `evalUuid` string, required
  - `status` 'ok', required

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/lightdash/apis/lightdash-api.md) · [All operations](https://skmtc.dev/lightdash/apis/lightdash-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lightdash/lightdash-api/revisions/40c933755c9a/schema)
