Upsert Test Cases
BetaUpserts 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
Either the Test Suites' ID or its unique name
Headers
X-API-KEY
Request
This endpoint expects an object.
input_values
Values for each of the Test Case's input variables
evaluation_values
Values for each of the Test Case's evaluation variables
id
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
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
A human-readable label used to convey the intention of this Test Case
Response
input_values
evaluation_values
id
external_id
label