---
title: "Update an eval case"
method: PATCH
path: "/projects/{projectId}/eval-suites/{suiteId}/cases/{caseId}"
tags: ["Eval runs"]
---

# Update an eval case

`PATCH /projects/{projectId}/eval-suites/{suiteId}/cases/{caseId}`

Partial update — omitted fields are left as they are. Supplying `steps` REPLACES the case's definition rather than merging into it. `matchOptions` and `checks` accept `null` to clear the case-level override and fall back to the suite's.

## Path parameters

- `projectId` string, required
- `suiteId` string, required
- `caseId` string, required

## Request body

- EvalCaseUpdateRequest — Partial update. Every field is optional; omitted fields are left as they are. `steps` REPLACES the definition rather than merging into it.
  - `title` string
  - `steps` EvalTestStep[] — REPLACES the case's test definition wholesale when provided.
    - `id` string, required
    - `kind` 'prompt' | 'toolCall' | 'interact' | 'assert', required
    - `prompt` string — User message (`kind: prompt`).
    - `serverName` string — Server that owns the tool (`kind: toolCall`).
    - `toolName` string — Tool name (`kind: toolCall` / `interact`).
    - `arguments` object — Tool-call arguments (`kind: toolCall`).
    - `action` object — Widget action (`kind: interact`).
    - `assertion` object — Predicate or widget assertion (`kind: assert`).
  - `expectedOutput` string
  - `iterations` integer
  - `isNegative` boolean
  - `scenario` string
  - `models` object[]
    - `model` string, required
    - `provider` string — Derived from a `provider/model` id when omitted.
  - `matchOptions` object, nullable — `null` clears the case override and inherits the suite's.
  - `checks` object, nullable — `null` clears the case override.
    - `mode` 'inherit' | 'replace' | 'extend'
    - `list` object[]

## Response `200`

The updated case.

- EvalCase — A persisted eval case, in the public steps-first shape. Note this is NOT `EvalTestCase`, which is the INLINE authoring shape accepted by suite creation.
  - `id` string, required
  - `title` string, required
  - `steps` EvalTestStep[], required — Ordered test steps. A `prompt` step is a model turn; a single model-free `toolCall` step is a render-check; `assert` steps hold the expectations.
    - `id` string, required
    - `kind` 'prompt' | 'toolCall' | 'interact' | 'assert', required
    - `prompt` string — User message (`kind: prompt`).
    - `serverName` string — Server that owns the tool (`kind: toolCall`).
    - `toolName` string — Tool name (`kind: toolCall` / `interact`).
    - `arguments` object — Tool-call arguments (`kind: toolCall`).
    - `action` object — Widget action (`kind: interact`).
    - `assertion` object — Predicate or widget assertion (`kind: assert`).
  - `expectedOutput` string
  - `iterations` integer, required
  - `isNegative` boolean, required — When true, the case passes if NO tools are called.
  - `scenario` string
  - `models` object[], required
    - `model` string, required
    - `provider` string
  - `matchOptions` object, nullable
  - `checks` object, nullable
    - `mode` 'inherit' | 'replace' | 'extend'
    - `list` object[]
  - `createdAt` number, nullable
  - `updatedAt` number, nullable

## Other responses

- `400` — Malformed body or parameters.
- `401` — Missing, invalid, revoked, or orphaned key (`UNAUTHORIZED`) — or the **target MCP server** needs an OAuth grant (`OAUTH_REQUIRED`), which is a property of the server, not your key.
- `403` — Key is valid but not allowed to do this.
- `404` — Unknown project, server, or resource.
- `409` — The resource is not in a state that accepts this write — a stale `expectedRevision`, a duplicate name, or an environment that cannot currently be launched. The request was well-formed; re-read the resource and retry.
- `429` — Per-key rate limit exceeded (60 requests/minute sustained, bursts up to 10). Honor `Retry-After` and back off with jitter.
- `500` — Something failed on MCPJam's side.
- `502` — Could not connect to the target MCP server.

---

[API](https://skmtc.net/mcpjam/apis/mcpjam-api.md) · [All operations](https://skmtc.net/mcpjam/apis/mcpjam-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mcpjam/mcpjam-api/revisions/b8c36aef7731/schema)
