Actions180
- Account Actions
- Attendance Actions
- Contact Actions
- Employee Actions
- Employee Time Off Actions
- Insight Actions
- Invoice Actions
- Journal Actions
- Notification Actions
- Organization Actions
- Organization Member Actions
- Organization Member Journal Actions
- Overtime Actions
- Potential Invoice Actions
- Project Actions
- Project Document Actions
- Project Documentation Actions
- Project Journal Actions
- Project Upload Actions
- Sales Actions
- Administration Actions
- Product Catalog Actions
- Product Category Actions
- Project Settings Actions
- Role Actions
- Task Actions
- Task Comment Actions
- Task Pipeline Actions
- Task Pipeline Item Actions
- Task Product Actions
- Task Stack Actions
- Task Settings Actions
- Task Subtask Actions
- Task Blocking Actions
- Team Actions
- Time Booking Actions
- Timetable Actions
- Vacation Actions
- VAT Rate Actions
- Workspace Actions
Time Booking → Create
AI-generatedSummary
Logs time entries to a Leadtime project, either against a specific task or the project itself.
Inputs
- type (required) — Specifies whether the time is logged to a Task (task) or directly to the Project (project).
- taskId (required) — The UUID of the specific task to log time to. Required when type is 'task'.
- projectId (required) — The ID of the project to log time to. Required when type is 'project'.
- activityId (required) — The ID of the activity type (e.g., Development, Design) to categorize the work.
- hours (required) — Number of hours to log (decimal, e.g., 2.5 for 2h 30min).
- date (required) — The date when the work was performed (format: YYYY-MM-DD).
- comment — Optional notes or description of the work performed.
Output shape
no body — success/failure only
The operation returns an empty success message if the time booking is created successfully; otherwise, it returns an error.
Examples
Example 1: Log 2 hours of Development work to a specific task on a project.
Set type to 'task', provide taskId and projectId, activityId to 'Development', hours to 2, and date to today.
Example 2: Log 5 hours of meeting time directly to a project.
Set type to 'project', provide projectId, activityId to 'Meeting', hours to 5, and date to today.