Update a test case definition

put/update-test-case-definition/{test_case_definition_id}

Path parameters

test_case_definition_idstring required

ID of the test case definition to update

Request body

namestring

Name of the test case definition

user_promptstring

User prompt to simulate in the test case

metricsstring[]

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 updated 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)

Changes

Changed in 7 of the 28 revisions of this API.178

    • removed the enum value gemini-2.5-flash of the request property llm_model

      request-property-enum-value-removed

    • removed the gemini-2.5-flash enum value from the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-removed

  • 1b4a9d84942a11See the full diff
    • added the new gpt-5.5 enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new gpt-5.5 enum value to the request property llm_model

      request-property-enum-value-added

  • 8ee53928bf3111See the full diff
    • added the new gemini-3.1-flash-lite enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new gemini-3.1-flash-lite enum value to the request property llm_model

      request-property-enum-value-added

  • 3aa6f6e028ef22See the full diff
    • added the new gpt-5.4-mini enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new gpt-5.4-nano enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new gpt-5.4-mini enum value to the request property llm_model

      request-property-enum-value-added

    • added the new gpt-5.4-nano enum value to the request property llm_model

      request-property-enum-value-added

  • 424df3aa790021See the full diff
    • the tool_mocks/items/output request property's maxLength was set to 15000

      request-property-max-length-set

    • added the new gpt-5.4 enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new gpt-5.4 enum value to the request property llm_model

      request-property-enum-value-added

    • added the new claude-4.6-sonnet enum value to the allOf[TestCaseDefinitionInput]/llm_model response property for the response status 200

      response-property-enum-value-added

    • added the new claude-4.6-sonnet enum value to the request property llm_model

      request-property-enum-value-added

    • endpoint added

      endpoint-added