testrail_update_case
Update an existing TestRail test case. Any field omitted is left unchanged. ALWAYS confirm with the user via a chat bubble before calling — this writes to the customer's TestRail. IMPORTANT: labels is a REPLACE, not a merge. To add a label without losing existing ones, FIRST call testrail_get_case, READ existing labels, MERGE, THEN call this with the full new array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | New refs string (e.g. "PROJ-123,PROJ-124") | |
| title | No | New title (max 250 chars) | |
| caseId | Yes | TestRail case id (C-number) | |
| labels | No | Full new label set (REPLACE — read existing first if you want to add without removing). TestRail 7.5+ only. | |
| typeId | No | Change type_id | |
| priorityId | No | Change priority_id | |
| customSteps | No | New plain-text steps | |
| customPreconds | No | New preconditions | |
| customStepsSeparated | No | New structured steps (BDD-preferred). Replaces existing. |