POST api/TimeLog/AddTimeLogAsync

Request Information

URI Parameters

None.

Body Parameters

TimeLogDTO
NameDescriptionTypeAdditional information
TimeLogId

integer

None.

Date

date

None.

StartTime

time interval

None.

EndTime

time interval

None.

TimeDuration

time interval

None.

WeekId

integer

None.

Year

integer

None.

Memo

string

None.

HourlyRateType

string

None.

HourlyRate

string

None.

CollaborationId

integer

None.

StartDate

string

None.

EndDate

string

None.

LogType

TimeLogType

None.

Screenshots

Collection of Screenshot

None.

Request Formats

application/json, text/json

Sample:
{
  "TimeLogId": 1,
  "Date": "2025-12-19T18:40:29.5743644+00:00",
  "StartTime": "00:00:00.1234567",
  "EndTime": "00:00:00.1234567",
  "TimeDuration": "00:00:00.1234567",
  "WeekId": 6,
  "Year": 7,
  "Memo": "sample string 8",
  "HourlyRateType": "sample string 9",
  "HourlyRate": "sample string 10",
  "CollaborationId": 11,
  "StartDate": "sample string 12",
  "EndDate": "sample string 13",
  "LogType": 1,
  "Screenshots": [
    {
      "Image": "sample string 1",
      "Timestamp": "2025-12-19T18:40:29.5743644+00:00"
    },
    {
      "Image": "sample string 1",
      "Timestamp": "2025-12-19T18:40:29.5743644+00:00"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TimeLogDTO'.

Response Information

Resource Description

BaseModel
NameDescriptionTypeAdditional information
success

boolean

None.

items

Object

None.

message

string

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "items": {},
  "message": "sample string 3",
  "total": 4
}