postWorkItemApprovals
Adds approval entries for specified approver user IDs to a single Work Item, enabling approval tracking; requires permission to configure approvals and supports dry_run validation.
Instructions
Adds approval entries for users on one Work Item. Provide approver user IDs in the request body; the signed-in user must have permission to configure approvals. Use getWorkItemApprovals to inspect existing entries and patchWorkItemApproval to record a decision. 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. | |
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |