Upsert Test Cases

Beta
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.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequired
Either the Test Suites' ID or its unique name

Headers

X-API-VersionstringOptional

Request

This endpoint expects an object.
input_valueslist of objectsRequired
Values for each of the Test Case's input variables
evaluation_valueslist of objectsRequired
Values for each of the Test Case's evaluation variables
idstringOptionalformat: "uuid"

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_idstringOptional>=1 character

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.

labelstring or nullOptional

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

Response

input_valueslist of objects
evaluation_valueslist of objects
idstring or null
external_idstring or null
labelstring or null