update_test_records
Set result, comment, or defect link on 1-50 test records in a single atomic bulk update per test run.
Instructions
Set result, comment, and/or defect link on 1-50 test records of one test run in a single bulk PATCH.
Run-level fields (title, status, group_id) — use update_test_runs instead. Atomic: one bad item rejects the whole batch; no record changes.
record_id must be copied verbatim from list_test_records — never decomposed. comment is sent verbatim; Polarion stores it as text/html regardless of the comment_format sent, so a later read always shows text/html.
Returns the echoed record_ids only — re-read via list_test_records. result must already be a value the run uses (discover via list_test_records) or the write is rejected; defect_id must reference an existing work item or the write is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Per-record changes (1-50); unset fields stay unchanged. | |
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| project_id | Yes | Polarion project ID. | |
| test_run_id | Yes | Test run ID (e.g. 'TR-2026-01'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | Yes | ||
| updated | Yes | ||
| record_ids | No | ||
| payload_preview | No |