Update time entry
Correct the hours, activity, date or comment of a time entry.
PATCH https://cotlet.dev/api/v1/redmine/time-entries/{time_entry_id}
write
Changes the fields you pass on an entry and returns the result. It reaches no one and is undone by another call with the old values, so it runs without asking first.
Parameters
| Name | Type | Description |
|---|---|---|
| time_entry_id integer required | integer | Entry ID from list_time_entries or log_time. |
| hours number | number | Decimal hours. |
| activity_id integer | integer | Activity ID from list_issue_options. |
| spent_on date | date | Day worked, YYYY-MM-DD. |
| comments string | string | Short description, 255 characters at most. |
Request
curl -X PATCH https://cotlet.dev/api/v1/redmine/time-entries/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("redmine", "update_time_entry", {"time_entry_id":1}) const result = await cotlet.call('redmine', 'update_time_entry', {"time_entry_id":1}); cotlet call redmine update_time_entry --data '{"time_entry_id":1}' Example response
{
"time_entry_id": 18433,
"issue_id": 4821,
"activity": "Development",
"hours": 2,
"spent_on": "2026-10-15",
"comments": "Reproduced the login loop and patched the session check"
}