postTestRecordAttachments
Upload one or more new files as attachments to a Polarion Test Record in a single multipart request and return the created attachment IDs. Set dry_run to validate the request first.
Instructions
Uploads one or more new files as attachments of a Test Record in a single multipart request: requestBody.resource.data holds one metadata entry (fileName, optional title) per file, and requestBody.files holds the base64-encoded file bytes at the same array index as each metadata entry. Returns the created attachment IDs. Use this to add files; to change an existing attachment use patchTestRecordAttachment, and to list what is already attached use getTestRecordAttachments. Effect: creates a new resource. Repeating this call may create additional resources; it is not guaranteed idempotent. Tip: set dry_run: true first to validate the arguments and preview the exact request without sending it to Polarion. The executor returns this preview as normal text, and as structured content when the tool declares an output schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | If true, validates the request and returns the exact request that would be sent to Polarion — with the Authorization header redacted and any binary payload summarized by byte length — without actually sending it. | |
| iteration | Yes | The iteration number identifying which repeated occurrence of this item is being addressed (e.g. which run of a test parameter). | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project. If the ID is unknown, ask the user; getProjects lists IDs only with global read access. | |
| testRunId | Yes | The Test Run's ID within its project. | |
| testCaseId | Yes | The Test Case's ID being referenced. | |
| requestBody | Yes | Attachment metadata and file data. | |
| testCaseProjectId | Yes | The project ID that owns the referenced Test Case — may differ from the project in the request path when the test case is shared from another project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |