Test SuitesTest Cases

Upsert Test Cases

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
Values for each of the Test Case's input variables
evaluation_values
list of unionsRequired
Values for each of the Test Case's evaluation variables
id
stringOptional
The Vellum-generated ID of an existing Test Case whose data you'd like to replace. If specified and no Test Case exists with this ID, a 404 will be returned.
external_id
stringOptional

An ID external to Vellum that uniquely identifies the Test Case that you’d like to create/update. If there’s a match on a Test Case that was previously created with the same external_id, it will be updated. Otherwise, a new Test Case will be created with this value as its external_id. If no external_id is specified, then a new Test Case will always be created.

label
stringOptional
A human-readable label used to convey the intention of this Test Case

Response

This endpoint returns an object
input_values
list of unions
evaluation_values
list of unions
id
stringOptional
external_id
stringOptional
label
stringOptional