Create a new test case definition
post/create-test-case-definition
Request body
namestring required
Name of the test case definition
user_promptstring required
User prompt to simulate in the test case
metricsstring[] required
Array of metric names to evaluate
dynamic_variablesobject
Dynamic variables to inject into the response engine
llm_model'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite'
Available LLM models for agents.
Response
Test case definition created successfully
namestring required
Name of the test case definition
user_promptstring required
User prompt to simulate in the test case
metricsstring[] required
Array of metric names to evaluate
dynamic_variablesobject required
Dynamic variables to inject into the response engine
llm_model'gpt-4.1' | 'gpt-4.1-mini' | 'gpt-4.1-nano' | 'gpt-5' | 'gpt-5-mini' | 'gpt-5-nano' | 'gpt-5.1' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5.4-nano' | 'gpt-5.5' | 'claude-4.5-sonnet' | 'claude-4.6-sonnet' | 'claude-4.5-haiku' | 'gemini-2.5-flash-lite' | 'gemini-3.0-flash' | 'gemini-3.1-flash-lite' required
Available LLM models for agents.
test_case_definition_idstring required
Unique identifier for the test case definition
type'simulation' required
Type of test case definition
creation_timestampinteger required
Timestamp when the test case definition was created (milliseconds since epoch)
user_modified_timestampinteger required
Timestamp when the test case definition was last modified (milliseconds since epoch)