POST api/AttendanceAndTimesheet/InsertAttendanceRequestEntry

Request Information

URI Parameters

None.

Body Parameters

InsertAttendanceRequest
NameDescriptionTypeAdditional information
UserID

integer

None.

AttendanceDate

date

None.

InDatetime

string

None.

OutDatetime

string

None.

SteppedInDatetime

string

None.

SteppedOutDatetime

string

None.

Token

string

None.

Reason

string

None.

Type

integer

None.

ShiftID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "AttendanceDate": "2025-08-07T06:52:45.1473083+08:00",
  "InDatetime": "sample string 3",
  "OutDatetime": "sample string 4",
  "SteppedInDatetime": "sample string 5",
  "SteppedOutDatetime": "sample string 6",
  "Token": "sample string 7",
  "Reason": "sample string 8",
  "Type": 9,
  "ShiftID": 10
}

text/html

Sample:
{"UserID":1,"AttendanceDate":"2025-08-07T06:52:45.1473083+08:00","InDatetime":"sample string 3","OutDatetime":"sample string 4","SteppedInDatetime":"sample string 5","SteppedOutDatetime":"sample string 6","Token":"sample string 7","Reason":"sample string 8","Type":9,"ShiftID":10}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.InsertAttendanceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <AttendanceDate>2025-08-07T06:52:45.1473083+08:00</AttendanceDate>
  <InDatetime>sample string 3</InDatetime>
  <OutDatetime>sample string 4</OutDatetime>
  <Reason>sample string 8</Reason>
  <ShiftID>10</ShiftID>
  <SteppedInDatetime>sample string 5</SteppedInDatetime>
  <SteppedOutDatetime>sample string 6</SteppedOutDatetime>
  <Token>sample string 7</Token>
  <Type>9</Type>
  <UserID>1</UserID>
</AttendanceAndTimesheetController.InsertAttendanceRequest>

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 'InsertAttendanceRequest'.

Response Information

Resource Description

Dictionary of Object [key] and Object [value]

Response Formats

application/json, text/json, text/html

Sample:
{"System.Object":{},"System.Object":{}}

application/xml, text/xml

Sample:
<ArrayOfKeyValueOfanyTypeanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
  <KeyValueOfanyTypeanyType>
    <Key />
    <Value />
  </KeyValueOfanyTypeanyType>
</ArrayOfKeyValueOfanyTypeanyType>