patchLinkedWorkItem
Update direct outgoing work item links in Polarion. Supports dry-run preview and idempotent updates.
Instructions
Updates the direct outgoing links to other Work Items. (The same as the corresponding Java API method.) Does not pertain to external links or backlinks. 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 preview the exact request Polarion would receive, without changing anything. On tools with a typed output schema, this preview is returned as an error-flagged result since it is not real tool output -- read the text content regardless of that flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roleId | Yes | The Role 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; call getProjects to list valid IDs. | |
| 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 Linked Work Item(s) body. | |
| targetProjectId | Yes | The Target Project ID. | |
| linkedWorkItemId | Yes | The Linked Work Item ID. |