postCollectionsRelationships
Adds relationship links to a Polarion Collection while preserving existing links; send JSON:API linkage to append new resources without replacing the current relationship set.
Instructions
Adds relationship links to one Collection without replacing its other links. Provide JSON:API linkage; use getCollectionsRelationship to inspect the set or patchCollectionsRelationships to replace it. 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. | |
| 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 Document(s) body. | |
| collectionId | Yes | The Collection ID. | |
| relationshipId | Yes | The relationship's name as it appears under `relationships` in the owning resource (e.g. `assignee`, `author`, `watches`, `linkedWorkItems`), not an ID of an individual link entry. |