Skip to main content
PATCH
cURL
Update an existing test case by its unique identifier.

Update a Test Case

Parameters

Request Body

The request body can include any of the following fields to update. Only include the fields you want to modify.

Response

The response will contain the updated test case with all fields reflecting the changes.

Path Parameters

id
string
required

Body

application/json
title
string

Title of the test case

variablesRichContent
object

Key-value pairs of rich content variables

promptId
string<uuid>

UUID of the prompt this test case belongs to

expectedOutput
string | null

Expected output for evaluation purposes

promptApplicationId
string<uuid> | null

UUID of the prompt application if applicable

messages
object[]

Array of message objects with role and content

variables
object | null

Key-value pairs of variables used in the test case

files
object[] | null

Array of file objects to attach to the test case

metadata
object

Metadata about the test case

Response

200

Test case updated successfully