Leadtime icon

Leadtime

Interact with Leadtime ERP API

Actions180

Time Booking → Create

AI-generated

Summary

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.

Links

Discussion