Config Tests

Update Config Test

Update a test configuration with encrypted secrets.

put/config-tests/{project_id}/{config_test_id}

Request

  • Base URL
    https://api.puppeteerai.com
  • Auth
    none declared. Required headers: Authorization

Path parameters

project_idstring required
config_test_idstring required

Headers

Authorizationstring required

Request body

is_voiceboolean

Whether to run in voice mode

call_direction'inbound' | 'outbound' nullable

Fake the call direction for voice runs so configs branching on <<call_direction>> can be tested

namestring required

Human-readable label for the config test

ai_promptstring required

Persona description (AI prompt) for the simulated user

user_messagesstring[]

Scripted user messages to send in the conversation

turn_countinteger required

Maximum number of turns (AI responses) per conversation (max 100)

json_dataobject nullable

JSON payload for thread initialization

trigger_dataobject nullable

Maps a trigger class name to the payload delivered to its check() when the test runs, e.g. {'ReceivedHealthieWebhookTrigger': {...}}.

expected_analysis_resultsobject

Assertions extracted from the transcript after the conversation runs. Shape: {variable_name: {type, prompt, expected_result, default_value, exclude_from_analysis}}

expected_scheduled_callobject nullable

Voice-only assertion that a scheduled call was booked. Shape: {match_type: 'any' | 'within_hours' | 'date' | 'exact', ...match-specific fields}

mock_responsesobject nullable

Mock responses for HTTP services during the test run

message_delaynumber nullable

Delay in seconds between simulation messages (default 2.0, 0 = no delay)

persona_modelstring nullable

Model to use for persona message generation (default: gpt-5.6-luna)

env_variablesobject nullable

Environment variable overrides for this test run

env_secretsobject nullable

Environment secret overrides for this test run

retell_account_idstring nullable

Retell account to use for voice tests; required when the project has multiple voice integrations

gates_productionboolean nullable

When true, this test must pass before production deploys are applied

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.