patchTestStepResultAttachment
Updates an existing Test Step Result attachment's metadata and optionally replaces its stored file with base64 bytes while keeping the same ID. Use it to rename or re-upload an existing file.
Instructions
Updates one existing Test Step Result attachment: its metadata (e.g. title) via requestBody.resource, and optionally replaces the stored file by passing base64-encoded bytes in requestBody.content. The attachment keeps its ID. Use this to rename or re-upload a file that already exists; to add a new file use postTestStepResultAttachments, and to read the current file use getTestStepResultAttachmentContent. Effect: idempotent — calling it again with the same input leaves the resource in the same end state, with no additional side effects. 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 | No | Attachment metadata and file data. | |
| attachmentId | Yes | The attachment's ID, as returned by the corresponding list- or get-attachments call for this resource. | |
| testStepIndex | Yes | The Test Step index. | |
| 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. |