GET/timers.json

Get all Running Timers

Brings back all current running timers. Will return a set of existing intervals for each timer. If the timer has never been stopped then this interval will only have a from property set and the you will need to calculate the current duration of the timer.


Query Params

  • Name
    projectId
    Type
    string
    Description

    timers on a given project

  • Name
    taskId
    Type
    string
    Description

    Timers on a task

  • Name
    runningTimersOnly
    Type
    boolean
    Description

    all active timers or only timers which are currently running

    Default
    false

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 Response

Examples

200 Response

application/json
{
  "timers": [
    {
      "dateDeleted": "",
      "serverTime": "2018-02-20T10:54:24Z",
      "intervals": [
        {
          "to": "",
          "from": "2018-02-20T10:51:30Z",
          "id": "1",
          "duration": "0"
        }
      ],
      "description": "",
      "dateUpdated": "2018-02-20T10:51:30Z",
      "projectName": "New hires",
      "projectId": "223699",
      "billable": false,
      "running": true,
      "id": "1",
      "taskName": "Hello",
      "lastStartedAt": "2018-02-20T10:51:30Z",
      "taskId": "1",
      "dateCreated": "2018-02-20T10:51:30Z",
      "duration": "0",
      "deleted": false,
      "userId": "1"
    }
  ],
  "STATUS": "OK"
}