For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content
Chat TestingUpdate Test Scenario
TestMu AI
StatusCommunityBlog
Chat Testing

Update Test Scenario

Update a test scenario in a workflow (including custom 'Add your own' scenarios).

PUT
/api/test-scenarios/{workflow_id}
Update Test Scenario
curl --request PUT \
--url "https://agent-testing.lambdatest.com/api/test-scenarios/{workflow_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"test_scenario": "<test_scenario>"
}'
{
"success": true,
"message": "<string>",
"data": {}
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

workflow_idstringrequired

Body

application/json
project_idstringrequired

Project ID associated with the workflow

test_scenarioobjectrequired

The updated test scenario data

Response

application/json

Successful Response

successbooleanrequired

Whether the operation was successful

messagestringrequired

Response message

dataobject

Response data

Update Test Scenario
curl --request PUT \
--url "https://agent-testing.lambdatest.com/api/test-scenarios/{workflow_id}" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"project_id": "<project_id>",
"test_scenario": "<test_scenario>"
}'
{
"success": true,
"message": "<string>",
"data": {}
}