Time Entries


List Time Entries

GET /api/time_entries

Parameters: (optional)

  • user_id - Filter by user
  • project_id - Filter by project
  • from - From (yyyymmdd)
  • to - To (yyyymmdd)

Response:

  • id - Entry ID
  • date_started - Date of entry (local to timezone)
  • date_stopped - Date timer was stopped (local to timezone)
  • project_id - Project ID
  • task_id - Task ID
  • hours - Hours tracked
  • minutes - Minutes tracked
  • seconds - Seconds tracked
  • description - Description
  • user_id - Creator user ID

Get Time Entry

GET /api/time_entry/id/:id

Response:

  • id - Entry ID
  • date_started - Date of entry (local to timezone)
  • date_stopped - Date timer was stopped (local to timezone)
  • project_id - Project ID
  • task_id - Task ID
  • hours - Hours tracked
  • minutes - Minutes tracked
  • seconds - Seconds tracked
  • description - Description
  • user_id - Creator user ID

Create Time Entry

POST /api/time_entries

Parameters:

  • date - Date of entry (yyyymmdd)
  • task_id - Task ID
  • seconds - Seconds tracked
  • description - Description
  • user_id - Creator user ID

Response:

  • id - Entry ID

Update Time Entry

POST /api/time_entry/id/:id

Parameters:

  • date_started - Local date of entry (yyyymmdd)
  • task_id - Task ID
  • seconds - Seconds tracked
  • description - Description
  • user_id - Creator user ID

Response:

  • message - Updated successfully

Delete Time Entry

DELETE /api/time_entry/id/:id

Response:

  • message - Deleted successfully