Voice Testing › Edit a voice scenario
Voice Testing
Edit a voice scenario Edit an existing voice scenario.
curl -- request PUT \
-- url "https://agent-testing.lambdatest.com/api/projects/{project_id}/voice-scenarios/edit" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"scenario_id" : "5a1e2b7c-9d3f-4e21-8c47-0f6b2d9a1e34" ,
"scenario_data" : {
"title" : "Order status lookup" ,
"description" : "Caller checks an existing order and now also asks to change the delivery address." ,
"persona" : "Adaptable Communicator" ,
"expected_output" : [
"Agent asks for the order number" ,
"Agent confirms the new delivery address" ,
"Agent summarizes the change before ending the call"
] ,
"max_turns" : 15
}
} '
{
"success" : true ,
"scenario" : {
"id" : "<string>" ,
"title" : "<string>" ,
"description" : "<string>" ,
"persona" : "<string>" ,
"category" : "task_completion" ,
"expected_output" : [
"<string>"
] ,
"max_turns" : 123 ,
"first_speaker" : "<string>" ,
"max_duration_seconds" : 123 ,
"prompt_version_id" : "<string>" ,
"sync_status" : "<string>"
}
}
Authorizations Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body application/json scenario_id string required
scenario_data object required
Response 200▼
application/json The updated scenario.
scenario object required
The created/updated scenario
▶ Hide child attributesscenario. id string
Example: "<string>"
scenario. title string
Example: "<string>"
scenario. description string
Example: "<string>"
scenario. persona string
Example: "<string>"
scenario. category string
Example: "task_completion"
scenario. expected_output string[]
scenario. first_speaker string
Example: "<string>"
scenario. max_duration_seconds number
scenario. prompt_version_id string
Example: "<string>"
scenario. sync_status string
Example: "<string>"
curl -- request PUT \
-- url "https://agent-testing.lambdatest.com/api/projects/{project_id}/voice-scenarios/edit" \
-- header "Authorization: Basic <encoded-value>" \
-- header "Content-Type: application/json" \
-- data ' {
"scenario_id" : "5a1e2b7c-9d3f-4e21-8c47-0f6b2d9a1e34" ,
"scenario_data" : {
"title" : "Order status lookup" ,
"description" : "Caller checks an existing order and now also asks to change the delivery address." ,
"persona" : "Adaptable Communicator" ,
"expected_output" : [
"Agent asks for the order number" ,
"Agent confirms the new delivery address" ,
"Agent summarizes the change before ending the call"
] ,
"max_turns" : 15
}
} '
{
"success" : true ,
"scenario" : {
"id" : "<string>" ,
"title" : "<string>" ,
"description" : "<string>" ,
"persona" : "<string>" ,
"category" : "task_completion" ,
"expected_output" : [
"<string>"
] ,
"max_turns" : 123 ,
"first_speaker" : "<string>" ,
"max_duration_seconds" : 123 ,
"prompt_version_id" : "<string>" ,
"sync_status" : "<string>"
}
}