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

Stops the specified stopwatch and updates the TimesheetHours in DB

Request Information

URI Parameters

NameDescriptionTypeAdditional information
currentTime

date

Required

UserId

globally unique identifier

Required

offset

integer

Required

Body Parameters

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": "57466970-de31-439d-b17a-5bdc570ad5a8",
  "TaskId": "1d2ab713-9fb8-4c16-8b14-247151bec99d",
  "PlanId": "d73f2d7e-cc48-4c6a-a9f7-0a1133731330",
  "StartDateTime": "2024-12-18T20:03:31.4069872+00:00",
  "TotalCompletedTime": "00:00:00.1234567",
  "IsRunning": true,
  "State": "sample string 7",
  "LastMessage": "sample string 8"
}

Response Information

Resource Description

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": "e0a720f1-707c-480f-8c89-f0321e864bde",
  "TaskId": "4051ee5a-93b5-4dc8-9812-341ec6680f1b",
  "PlanId": "3ad2da82-fcdd-4693-8a17-7040425c8994",
  "StartDateTime": "2024-12-18T20:03:31.4069872+00:00",
  "TotalCompletedTime": "00:00:00.1234567",
  "IsRunning": true,
  "State": "sample string 7",
  "LastMessage": "sample string 8",
  "HoursInfo": null,
  "LineInfo": null
}