Create a new test case.
Organization API key for authentication
Request body for creating a test case
Input for the test case
1"What is the weather today?"
Test set ID (REQUIRED in body, not URL)
8"abc12345"
Expected behaviors (list of strings). This is the preferred field.
["The weather is sunny."]
DEPRECATED: Use expected_behaviors instead. If provided and expected_behaviors is not, this value will be wrapped in a list and used as expected_behaviors.
"The weather is sunny."
Expected output as JSON object
Human-readable description
"Test case for weather query"
Type of input for the test case. Defaults to SCENARIO. When set to SCRIPT, the simulation_metadata_input should contain a script_turns field with ordered persona turn texts.
SCENARIO, TRANSCRIPT, IVR, AUDIO, MANUAL, SCRIPT "SCENARIO"
Metadata for simulation. Contents vary by input_type. When input_type is SCRIPT, include a script_turns field (array of strings) with the ordered lines for the persona to deliver.
Input for metrics
User notes
"Created for regression testing"
Test case created successfully
Test case resource.