v1

latestOpenAPI 3.0.02026-08-061478520.6 KB
[v1] Timer

Start, stop, get timer

Get timer status, start new timer or stop one.

post/timer

Request body

action'status' | 'start' | 'stop' required

either status, start or stop

task_idinteger

start a task with a given task

started_atstring

timer will count time since this date only when action = start

stopped_atstring

timer will count time to this date only when action = stop

Example request

{
  "started_at": "2021-03-05 08:54:12",
  "stopped_at": "2021-03-05 09:54:12"
}

Response

OK

isTimerRunningboolean
elapsednumber
start_timestring