v2

latestOpenAPI 3.0.12026-07-31690160432.4 KB
Task Timer

Add a time range entry for a task

Logs a time entry based on a start and end timestamp. Useful when you know the exact time window.

post/v1/time-track/tasks/{taskId}/range

Path parameters

taskIdinteger required
Example:1

ID of the task for which the time range is to be added

Headers

X-Org-Idinteger required
Example:1

Organization ID (from header)

Request body

startTimeinteger required

Start time of the work (epoch millis)

endTimeinteger required

End time of the work (epoch millis)

billingTypeboolean required

Whether the time is billable

notesstring

Optional notes describing the work

Example request

{
  "startTime": 1754505900000,
  "endTime": 1754551800000,
  "billingType": true,
  "notes": "Pair programming and debugging session"
}

Response

Time range added successfully

successboolean

Indicates if the operation was successful

messagestring

Message describing the result of the operation

codeinteger

HTTP status code of the response

timestampstring date-time

Timestamp of the response

Example response

{
  "success": true,
  "message": "Operation completed successfully",
  "code": 200,
  "timestamp": "2023-01-01T12:00:00Z"
}