Test Suites

Upsert Test Suite Test Case

Beta
POST
https://api.vellum.ai/v1/test-suites/:id/test-cases
Upserts a new test case for a test suite, keying off of the optionally provided test case id. If an id is provided and has a match, the test case will be updated. If no id is provided or no match is found, a new test case will be appended to the end. Note that a full replacement of the test case is performed, so any fields not provided will be removed or overwritten with default values.

Path parameters

id
string
A UUID string identifying this test suite.

Request

This endpoint expects an object.
input_values
list of unions
evaluation_values
list of unions
id
optional string
label
optional string

Response

This endpoint return an object.
input_values
list of unions
evaluation_values
list of unions
id
optional string
label
optional string
POST
/v1/test-suites/:id/test-cases
curl -X POST https://api.vellum.ai/v1/test-suites/id/test-cases \
-H "X_API_KEY: <apiKey>" \
-H "Content-Type: application/json" \
-d '{
"input_values": [],
"evaluation_values": []
}'
Response
{
"input_values": [],
"evaluation_values": [],
"id": "id",
"label": "label"
}