patchWorkItems
Updates a batch of Work Items in one Polarion project; use dry_run to validate and preview the exact request before applying changes.
Instructions
Updates a list of Work Items. Scope: one project (requires a project ID). To act across all projects, use patchAllWorkItems instead. Cardinality: targets the full collection or a batch. For a single item by ID, use patchWorkItem instead. For the same collection across projects, use patchAllWorkItems instead. 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. Examples: {"projectId":"myproject","requestBody":{"data":[{"type":"workitems","id":"WI-123","attributes":{"status":"inprogress"}}]}}. Selection: Use patchWorkItems to update a batch within one project; use patchWorkItem for one known ID and patchAllWorkItems when the batch spans projects.
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. | |
| 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. | |
| requestBody | Yes | The Work Item(s) body. | |
| changeTypeTo | No | The Type the Workitem to change to. | |
| workflowAction | No | The Workflow Action. |