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": "3e52adf0-a64c-47e6-8e90-058fb4782e2f",
  "TaskId": "e07044c2-6ab9-4bbe-9ec6-510c305d0e67",
  "PlanId": "9d32b40e-eda8-448b-97ac-16fcef93edd1",
  "StartDateTime": "2024-12-18T20:02:31.7866431+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": "f70d2641-5395-4b25-9462-4701edb651ae",
    "TaskId": "08c9b7cc-816a-4b4d-b357-be3b3dfcf71a",
    "PlanId": "565e6862-d9cd-45e9-9c18-1dd5f723dbcb",
    "StartDateTime": "2024-12-18T20:02:31.8022683+00:00",
    "TotalCompletedTime": "00:00:00.1234567",
    "IsRunning": true,
    "State": "sample string 7",
    "LastMessage": "sample string 8",
    "HoursInfo": null,
    "LineInfo": null
  },
  {
    "TimesheetLineId": "f70d2641-5395-4b25-9462-4701edb651ae",
    "TaskId": "08c9b7cc-816a-4b4d-b357-be3b3dfcf71a",
    "PlanId": "565e6862-d9cd-45e9-9c18-1dd5f723dbcb",
    "StartDateTime": "2024-12-18T20:02:31.8022683+00:00",
    "TotalCompletedTime": "00:00:00.1234567",
    "IsRunning": true,
    "State": "sample string 7",
    "LastMessage": "sample string 8",
    "HoursInfo": null,
    "LineInfo": null
  }
]