update_time_entry
Update a time entry's duration, date, task, or description by ID. Missing fields are kept from the original entry.
Instructions
Change one time entry (a declaration), by the id list_time_entries returns: its duration, its day, its task, its description. Gryzzly's update requires all of them, so whatever is left out is read back from the existing entry first. Use log_time to add time and delete_time_entry to remove an entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The declaration's identifier, as returned by `list_time_entries`. | |
| date | No | The new day. Left alone when absent. | |
| task | No | The new task, by name or id. Left alone when absent. | |
| user | No | Whose declaration it is, when it is not the current user's. | |
| project | No | The project the new task belongs to, to narrow the lookup. | |
| duration | No | The new duration. Left alone when absent. | |
| description | No | The new description. Left alone when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The declaration's identifier, needed to update or delete it. | |
| date | Yes | The day, as `YYYY-MM-DD`. | |
| task | No | The task's name, when it could be resolved. | |
| project | No | The project's name, when it could be resolved. | |
| seconds | Yes | The duration in seconds, which is what Gryzzly stores. | |
| task_id | Yes | The task the time is declared against. | |
| user_id | Yes | Whose time it is. | |
| duration | Yes | The duration, human readable. | |
| project_id | No | The project the task belongs to. | |
| description | No | What the time was spent on. |