Skip to main content
PATCH
Update an eval case

Authorizations

Authorization
string
header
required

MCPJam API key (sk_…). Create one at Settings → API keys. Guest sessions cannot use the API, and API keys cannot manage other API keys.

Path Parameters

projectId
string
required

ID of the hosted project that contains the server.

suiteId
string
required

Eval suite ID, as returned by POST /eval-runs.

caseId
string
required

Eval case id.

Body

application/json

Partial update. Every field is optional; omitted fields are left as they are. steps REPLACES the definition rather than merging into it.

title
string
Minimum string length: 1
steps
object[]

REPLACES the case's test definition wholesale when provided.

Minimum array length: 1
expectedOutput
string
iterations
integer
Required range: 1 <= x <= 10
isNegative
boolean
scenario
string
models
object[]
matchOptions
object | null

null clears the case override and inherits the suite's.

checks
object | null

null clears the case override.

Response

The updated case.

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
object[]
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.

Minimum array length: 1
iterations
integer
required
Required range: 1 <= x <= 10
isNegative
boolean
required

When true, the case passes if NO tools are called.

models
object[]
required
expectedOutput
string
scenario
string
matchOptions
object | null
checks
object | null
createdAt
number | null
updatedAt
number | null