Skip to navigation

Update eval case

Edit, enable, or disable a test case.

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired>=1 character
caseIdstringRequired>=1 character

Request

This endpoint expects an object.
enabledbooleanOptional
expectedobject or nullOptional
graderslist of objects or nullOptional

Per-case graders that REPLACE the suite graders for this case. null clears the override so the case uses the suite graders again.

inputobjectOptional
namestringOptional>=1 character
notesstring or nullOptional

Response

Case updated
createdAtstring
enabledboolean
graderslist of any or null

Per-case graders that REPLACE the suite graders for this case, or null when the case uses the suite graders.

idstring
namestring
notesstring or null
originstring
suiteIdstring
updatedAtstring
expectedanyOptional
inputanyOptional

{ variables?, messages?, toolMocks?, endUser?, tenant?, record? } — what the case feeds the target, the identity it runs as, and the record it runs on.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error