postWorkRecords
Creates time-tracking work records for a single Work Item, with optional dry-run validation, so users can log effort accurately before submitting.
Instructions
Creates time-tracking work records for one Work Item and returns the created entries. Each request-body record must include valid work-record attributes such as date and time spent; the user must have permission to log effort. Use getWorkRecords to inspect entries and deleteWorkRecord to remove an incorrect record. 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 |