Test Case
Update Test Case
Update an existing test case
PATCH
Update an existing test case by its unique identifier.
Update a Test Case
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Yes | The UUID of the test case to update |
Request Body
The request body can include any of the following fields to update. Only include the fields you want to modify.
Field | Type | Description |
---|---|---|
title | string | Title of the test case |
messages | array | Array of message objects with role and content |
variables | object | Key-value pairs of variables used in the test case |
variablesRichContent | object | Key-value pairs of rich content variables |
files | array | Array of file objects to attach to the test case |
promptId | string | UUID of the prompt this test case belongs to |
expectedOutput | string | Expected output for evaluation purposes |
answers | object | Evaluation answers with good/bad results and evals |
promptApplicationId | string | UUID of the prompt application if applicable |
metadata | object | Metadata about the test case including source |
Response
The response will contain the updated test case with all fields reflecting the changes.
Path Parameters
Body
application/json
Response
200
Test case updated successfully