v2

latestOpenAPI 3.0.12026-07-31690160432.4 KB
Task Timer

Update a timer

Update billing status, notes, or start time and duration of a timer

put/v1/time-track/{trackId}

Path parameters

trackIdinteger required
Example:5

Timer Track ID to update

Headers

X-Org-Idinteger required
Example:1

Organization ID (in header)

Request body

billingTypeboolean

Whether the timer is billable.

notesstring

Optional notes about the timer.

hoursinteger

Number of hours to set for the timer.

minutesinteger

Number of minutes to set for the timer.

Example request

{
  "billingType": true,
  "notes": "Worked on reporting module.",
  "hours": 2,
  "timerData": {
    "startTime": 1754418600000
  }
}

Response

Timer updated 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"
}