POST api/AttendanceAndTimesheet/InsertAttendanceRequestEntryNew

Request Information

URI Parameters

None.

Body Parameters

InsertAttendanceRequestNew
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.

Attachment

string

None.

FileName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "AttendanceDate": "2025-08-07T06:54:29.8980229+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,
  "Attachment": "sample string 11",
  "FileName": "sample string 12"
}

text/html

Sample:
{"UserID":1,"AttendanceDate":"2025-08-07T06:54:29.8980229+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,"Attachment":"sample string 11","FileName":"sample string 12"}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.InsertAttendanceRequestNew xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <Attachment>sample string 11</Attachment>
  <AttendanceDate>2025-08-07T06:54:29.8980229+08:00</AttendanceDate>
  <FileName>sample string 12</FileName>
  <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.InsertAttendanceRequestNew>

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

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>