Test Suites

Upsert Test Suite Test Case

Beta
POST

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

idstringRequired
A UUID string identifying this test suite.

Request

This endpoint expects an object.
input_values
list of unionsRequired
evaluation_values
list of unionsRequired
id
stringOptional
label
stringOptional

Response

This endpoint returns an object
input_values
list of unions
evaluation_values
list of unions
id
stringOptional
label
stringOptional
POST
1curl -X POST https://api.vellum.ai/v1/test-suites/id/test-cases \
2 -H "X_API_KEY: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "input_values": [],
6 "evaluation_values": []
7}'
200
Successful
1{
2 "input_values": [],
3 "evaluation_values": [],
4 "id": "id",
5 "label": "label"
6}