updateCase
Modify a TestRail test case by supplying its case ID and any fields to update; unchanged fields remain intact.
Instructions
Updates an existing test case. REQUIRED: caseId. OPTIONAL: title, typeId, priorityId, templateId, customSteps, customExpected, customStepsSeparated, customFields, etc. Only specified fields will be updated. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caseId | Yes | TestRail Case ID | |
| title | No | Test case title | |
| typeId | No | Test case type ID | |
| priorityId | No | Test case priority ID | |
| estimate | No | Test case estimated time | |
| milestoneId | No | TestRail Milestone ID | |
| refs | No | Test case references | |
| templateId | No | Template ID (use 2 for custom_steps_separated support) | |
| customPrerequisites | No | Prerequisites | |
| customSteps | No | Test case steps | |
| customExpected | No | Expected results | |
| customStepsSeparated | No | Separated test steps array (requires template_id=2) | |
| customFields | No | Additional custom fields as key-value pairs (e.g., {custom_case_security_score: 'high'}) |