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
Test RunsBulk Update Test Run Instances
TestMu AI
StatusCommunityBlog
Test Runs

Bulk Update Test Run Instances

Applies the same update to several test run instances of a test run in one call. scope selects the instances to update and patch holds the values to apply to every selected instance. Use PUT /api/v1/test-run/instance/{test_instance_id} to update a single instance along with its remarks. To set assignee you need the numeric user ID, which you can look up with the "Get All Users" API in the User Management section of the API documentation.

PUT
/api/v2/test-run/{test_run_id}/bulk-update
Bulk Update Test Run Instances
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v2/test-run/{test_run_id}/bulk-update" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"scope": {
"instance_ids": [
266687656,
266687657,
266687658
]
},
"patch": {
"status": "Passed"
}
}'
{
"message": "Test Run Instances updated successfully",
"type": "Success"
}

Authorizations

Authorizationstringheaderrequired

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

Path Parameters

test_run_idstringrequired

ID of the test run whose instances are being updated.

Body

application/json
scopeobjectrequired

Selects the test run instances to update.

patchobjectrequired

Values applied to every instance selected by scope. Send only the fields you want to change.

Response

application/json

OK

messagestring
Example: "Test Run Instances updated successfully"
typestring
Example: "Success"
Bulk Update Test Run Instances
curl --request PUT \
--url "https://test-manager-api.lambdatest.com/api/v2/test-run/{test_run_id}/bulk-update" \
--header "Authorization: Basic <encoded-value>" \
--header "Content-Type: application/json" \
--data '{
"scope": {
"instance_ids": [
266687656,
266687657,
266687658
]
},
"patch": {
"status": "Passed"
}
}'
{
"message": "Test Run Instances updated successfully",
"type": "Success"
}