patchWorkItemApproval
Update a single approver’s decision on a Polarion Work Item approval entry by user ID; validate and preview the request with dry_run before sending.
Instructions
Updates one approver’s decision on a Work Item approval entry. Use the approver’s user ID as the approval identifier; the user must be allowed to record the decision. Read the entry with getWorkItemApproval and use patchWorkItemApprovals only when changing multiple approvals. Cardinality: targets a single item by ID. For the full collection or a batch, use patchWorkItemApprovals instead. 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 |
|---|---|---|---|
| userId | Yes | The User ID. | |
| 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. | |
| 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. | |
| workItemId | Yes | The Work Item's ID within its project (e.g. `WI-123`), not the combined `project/id` path used in some link payloads. | |
| requestBody | Yes | The Test Run(s) body. |