My work
update-worklog-tool
Update fields on an existing time entry.
Updates one worklog and returns it in the same shape as list-worklogs-tool. Only the fields you include are changed; others are left intact.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
id | integer | yes | Worklog id. |
date | string (Y-m-d) | no | |
minutes | integer | no | 1–1440. |
description | string | no | Up to 5000 characters. |
project_id | integer | no | |
deadline_id | integer|null | no | Pass null to detach the deadline. |
work_item_id | integer|null | no | |
is_overtime | boolean | no | Silently coerced to false if the user lacks times::write_overtime. |
is_not_billable | boolean | no | When changing deadline_id without setting this, the value is inferred from the new deadline. |
reason | string|null | no |
Permissions
- Editing your own worklog: always allowed.
- Editing another user's worklog:
times::update_others. is_overtime: true: requirestimes::write_overtime(otherwise silently coerced tofalse).- Re-pointing
deadline_idto a deadline owned by another user:times::write_on_others_deadlines.
Example
{
"id": 42,
"minutes": 120,
"description": "Refactor payment gateway + retries"
}Response
The updated worklog, in the same shape as a row from list-worklogs-tool.
Errors
- Editing a worklog you don't own without
times::update_othersreturns an authorization error. - Passing a
deadline_idthat doesn't belong to the worklog's project returns a 404-style error. - Missing
idreturns a validation error.