create_test_record_attachments
Upload 1-10 local files as attachments to a Polarion test record in one request, using project, test run, test case, and iteration coordinates.
Instructions
Upload 1-10 local files as test record attachments in one request.
For document attachments use create_document_attachments, for work item attachments use create_work_item_attachments instead. Record coordinates (project_id, test_run_id, test_case_id, iteration) match get_test_record -- verify via list_test_records first. file_path is read from local disk by the server process -- use absolute paths to readable files. Total upload size per call is capped at 25 MiB: compress or use the Polarion portal for one oversized file, split oversized batches across calls. attachment_ids in the result are server-assigned ({test_case_id}_{file_name}) and differ from the input file_name. A file_name colliding with another item in the same call, or with an existing attachment on the record, rejects the whole batch -- check list_test_record_attachments first or pick a new file_name. NOT idempotent -- retrying a success is rejected as a duplicate, not silently merged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview payload without calling Polarion. | |
| iteration | No | Record iteration number (0-based). | |
| project_id | Yes | Polarion project ID. | |
| attachments | Yes | Files to upload in one request. | |
| test_run_id | Yes | Test run ID (e.g. 'TR-2026-01'). | |
| test_case_id | Yes | Full test case work item ID 'project/WI-id' as returned by list_test_records. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| attachment_ids | Yes | ||
| payload_preview | Yes |