patchDocument
Updates attributes of a Polarion LiveDoc via a JSON:API request body, changing only supplied fields; use dry_run to validate and preview the request before sending.
Instructions
Updates attributes of one LiveDoc using its JSON:API request body; only supplied attributes change. Rich text uses {type: "text/html", value: "<p>…</p>"}. Use patchDocumentParts for structured body parts or patchRichPage for a wiki page. 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","spaceId":"_default","documentName":"requirements","requestBody":{"data":{"type":"documents","id":"requirements","attributes":{"title":"Updated requirements"}}}}.
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. | |
| spaceId | Yes | The Document Space ID (a folder-like grouping of documents/pages within a project). Use `_default` (no quotes) to address the project's default space. | |
| 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 body. | |
| documentName | Yes | The Document name. | |
| workflowAction | No | The Workflow Action. |