Skip to main content
POST
Create several eval cases

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.

Headers

Idempotency-Key
string

Makes the write retry-safe. A repeat of the same request under the same key lands on the rows the first attempt authored instead of creating a second copy; those entries come back with replayed: true.

Maximum string length: 256

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.

Body

application/json

Author several cases in one call. Each entry takes the same fields as a single create. The 100-case cap is deliberately smaller than a suite file's 500-case limit, so a maximal file uploads in several calls.

cases
object[]
required
Required array length: 1 - 100 elements
duplicatePolicy
enum<string>
default:block

What to do with a case whose definition already matches one in the suite. An unrecognized value coerces to block and reports the coercion in the response's duplicatePolicy rather than failing the call.

Available options:
block,
warn,
create_anyway
overrideReason
string

Required by warn and create_anyway. Recorded on the case's revision.

Minimum string length: 1

Response

Per-case outcomes. Some entries may have failed; see failed.

A partial outcome by design: the cases in created were written even when failed is non-empty. Both arrays carry the index of the request entry they describe.

created
object[]
required
failed
object[]
required
duplicatePolicy
object
required

What policy actually applied, so a coercion is never silent.

warnings
object[]