Add cases to a test suite's draft
Add cases to the test suite’s draft. Each case has an input for the agent and an expected object keyed by judge id: {judge_major_version, judge_minor_version, op, expected}. A check passes when the judge’s output <op> expected; op is eq, ne, lt, lte, gt, gte, in or not_in. Publish the draft to run it.
POST
/v1/projects/{projectId}/test-suites/{testSuiteId}/casesAuthorization
AuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
Path parameters
projectIdstring<uuid>requiredtestSuiteIdstring<uuid>requiredRequest body
requiredapplication/jsoncasesTestCaseInput[]requiredmin items 1 · max items 1000
Show propertiesHide properties
Array of
TestCaseInputnamestring | nullShow propertiesHide properties
Any of:
string
stringnull
nullinputanyrequiredWhat the agent gets.
expectedobjecttagsstring[]metadataobjectResponses
200
Response for status 200
case_idsstring[]required404
Response for status 404
errorstringrequiredmessagestringcodestringdetailsstring[]409
Response for status 409
errorstringrequiredmessagestringcodestringdetailsstring[]422
Response for status 422
errorstringrequiredmessagestringcodestringdetailsstring[]