v2

latestOpenAPI 3.0.12026-07-31690160432.4 KB
Task Timer

Add range timer for a project task

Adds a time range entry to a project task using start and end timestamps.

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

Path parameters

projectIdinteger required
Example:5

ID of the project

taskIdinteger required
Example:101

ID of the project task to which range timer is being added

Headers

X-Org-Idinteger required
Example:1

Organization ID (tenant)

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

Range timer 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"
}