POST api/ts/stopwatch/start?UserId={UserId}&offset={offset}

Starts a new stopwatch and will stop any other currently running stopwatches (if validation passes)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserId

globally unique identifier

Required

offset

integer

Required

Body Parameters

Stopwatch Object Properties - Guids: TimesheetLineId, PlanId, TaskId DateTime: StartDateTime

Stopwatch
NameDescriptionTypeAdditional information
TimesheetLineId

globally unique identifier

None.

TaskId

globally unique identifier

None.

PlanId

globally unique identifier

None.

StartDateTime

date

None.

TotalCompletedTime

time interval

None.

IsRunning

boolean

None.

State

string

None.

LastMessage

string

None.

HoursInfo

DataRow

None.

LineInfo

DataRow

None.

Request Formats

application/json, text/json

Sample:
{
  "TimesheetLineId": "d33af1c4-49c2-4191-a14a-4cd1bdd72d57",
  "TaskId": "7fdbcc28-c27b-4dea-a90c-1505c15ba94a",
  "PlanId": "a901c8bc-baa8-4e16-b596-4aba9965f668",
  "StartDateTime": "2024-10-18T08:35:21.1896966+00:00",
  "TotalCompletedTime": "00:00:00.1234567",
  "IsRunning": true,
  "State": "sample string 7",
  "LastMessage": "sample string 8"
}

Response Information

Resource Description

Collection of Stopwatch
NameDescriptionTypeAdditional information
TimesheetLineId

globally unique identifier

None.

TaskId

globally unique identifier

None.

PlanId

globally unique identifier

None.

StartDateTime

date

None.

TotalCompletedTime

time interval

None.

IsRunning

boolean

None.

State

string

None.

LastMessage

string

None.

HoursInfo

DataRow

None.

LineInfo

DataRow

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "TimesheetLineId": "5c0f48c7-4a00-42f6-96cd-8185cc96a912",
    "TaskId": "b9cce979-cae6-4475-868d-765a52632252",
    "PlanId": "a94d2dd6-bb64-437b-9cbe-e9cf5cb29960",
    "StartDateTime": "2024-10-18T08:35:21.1896966+00:00",
    "TotalCompletedTime": "00:00:00.1234567",
    "IsRunning": true,
    "State": "sample string 7",
    "LastMessage": "sample string 8",
    "HoursInfo": null,
    "LineInfo": null
  },
  {
    "TimesheetLineId": "5c0f48c7-4a00-42f6-96cd-8185cc96a912",
    "TaskId": "b9cce979-cae6-4475-868d-765a52632252",
    "PlanId": "a94d2dd6-bb64-437b-9cbe-e9cf5cb29960",
    "StartDateTime": "2024-10-18T08:35:21.1896966+00:00",
    "TotalCompletedTime": "00:00:00.1234567",
    "IsRunning": true,
    "State": "sample string 7",
    "LastMessage": "sample string 8",
    "HoursInfo": null,
    "LineInfo": null
  }
]