Update an existing time record
everhour_update_time_recordModify an existing time record by updating its duration, date, or comment. Uses the record ID from list or log commands.
Instructions
Modify an existing time record (change duration, date, or comment).
Args:
record_id (number): The time record ID returned by everhour_list_time_records or everhour_log_time.
duration ({ hours? } | { seconds? }, optional): New duration. Omit to keep existing.
date (string, optional): New date YYYY-MM-DD. Omit to keep existing.
comment (string, optional): New comment. Pass empty string to clear it. Omit to keep existing.
response_format ('markdown' | 'json')
Returns the updated time record.
Examples:
"Change record 12345 to 3 hours" → record_id=12345, duration={ hours: 3 }
"Update the comment on record 12345 to 'pair session with Alex'" → record_id=12345, comment='pair session with Alex'
Error Handling:
404 → record not found
403 → record locked (period closed) or not yours
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| comment | No | ||
| duration | No | ||
| record_id | Yes | ID of the time record to update. | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |