updateCase
Update test case fields in TestRail by providing the case ID and specifying only the attributes to change, including steps, custom fields, and templates.
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 |
|---|---|---|---|
| refs | No | Test case references | |
| title | No | Test case title | |
| caseId | Yes | TestRail Case ID | |
| typeId | No | Test case type ID | |
| estimate | No | Test case estimated time | |
| priorityId | No | Test case priority ID | |
| templateId | No | Template ID (use 2 for custom_steps_separated support) | |
| customSteps | No | Test case steps | |
| milestoneId | No | TestRail Milestone ID | |
| customFields | No | Additional custom fields as key-value pairs (e.g., {custom_case_security_score: 'high'}) | |
| customExpected | No | Expected results | |
| customPrerequisites | No | Prerequisites | |
| customStepsSeparated | No | Separated test steps array (requires template_id=2) |