Update test run
update_test_runEdit a test run: title/notes/cycle/environment/lifecycle state/tags, and its case selection. Case selection is one of: includeAllCases (all project cases), caseIds (set the exact case list, replacing the current one), or addCaseIds/removeCaseIds (add/remove relative to the run's current cases). Provide caseIds OR addCaseIds/removeCaseIds, not both. Closed runs cannot be edited.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"runId": "<runId>"
},
"name": "update_test_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional new run notes. | |
| runId | Yes | Test run id to edit. | |
| title | No | Optional new run title. | |
| tagIds | No | Optional tag ids (replaces the run's tags). | |
| caseIds | No | Set the run's exact case list (replaces the current selection). Mutually exclusive with addCaseIds/removeCaseIds. | |
| cycleId | No | Optional cycle id (from get_cycles). Omit to leave the run's cycle unchanged; pass null to detach the run from its cycle. | |
| project | Yes | Project id the run belongs to. Numeric project id as returned by get_projects (the number in the app URL); a project name is not accepted. | |
| addCaseIds | No | Case ids to add to the run's current cases. | |
| environmentId | No | Optional environment id (from get_environments). Omit to leave the run's environment unchanged; pass null to clear it. | |
| removeCaseIds | No | Case ids to remove from the run's current cases. | |
| includeAllCases | No | Set true to include all of the project's cases in the run. | |
| lifecycleStateId | No | Optional lifecycle state id (from get_lifecycles). |