log_time
Log offline work hours to Worksnaps by specifying project, task, duration in minutes, and optional date and comment.
Instructions
Log offline time to Worksnaps for yourself (POST /projects/{projectId}/time_entries.xml). Requires projectId, taskId, and minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Entry date YYYY-MM-DD. Defaults to today (local). from_timestamp aligns to a 10-minute boundary. | |
| token | No | Worksnaps API token. Optional if WORKSNAPS_API_TOKEN is set. | |
| taskId | No | Worksnaps task ID. Optional if WORKSNAPS_DEFAULT_TASK_ID is set. | |
| comment | No | Optional work description (user_comment). | |
| minutes | Yes | Duration in minutes for the offline time entry. | |
| projectId | No | Worksnaps project ID. Optional if WORKSNAPS_DEFAULT_PROJECT_ID is set. | |
| startHour | No | Optional local hour (0-23) on the entry date for from_timestamp. Defaults to 9. |