/
1.3 Update work hours

1.3 Update work hours

put /rest/shdsd-Timesheet/3/worklog/{id}/{action}

API Documentation

Update part of the unsubmitted work log. When the API is called, it will be executed on behalf of the owner of the work log.

Media type

  • application/json

Path parameters

Parameter

Type

Description

Required

Parameter

Type

Description

Required

id

String

Work log ID

Required

action

String

submit:Update and submit work hours; after submission, it enters a pending review status;

save:Update and save work hours; after saving, it remains in an unsubmitted status;

Required

Request example

{ "memo":"Complete the functional design", "startDate": "2024-07-24", "timeWorkedStr":"8h" }

Request BODY Details

Parameter

Type

Description

Required

Default Value

Parameter

Type

Description

Required

Default Value

memo

String

Remarks text of the work log. Compliance with global configuration regarding whether it is required.

Not required

<Default is empty; do not update>

startDate

String

Start time of the work log in the format yyyy-MM-dd

Not required

<Default is empty; do not update>

timeWorkedStr

String

Time spent (For example:2h, 1h 30m, 30m)

Not required

<Default is empty; do not update>

remainingEstimateStr

String

Remaining estimated time (For example:2h, 1h 30m, 30m)

Not required

<When left empty, if timeWorkedStr is empty, do not update; otherwise, calculate automatically.>

workLogType

String

Work type of the work log

Not required

<Default is empty; do not update>

auditor

String

Reviewer of the work log

Not required

<Default is empty; do not update>

Return Example

{ "msg": "ok" }