POST api/AttendanceAndTimesheet/InsertContractTimeEntryData

Request Information

URI Parameters

None.

Body Parameters

InsertContractTimeEntry
NameDescriptionTypeAdditional information
UserId

integer

None.

Token

string

None.

EmployeeName

string

None.

Date

date

None.

TimeIn

date

None.

TimeOut

date

None.

BreakIn

date

None.

BreakOut

date

None.

Hours

decimal number

None.

Amount

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "Token": "sample string 2",
  "EmployeeName": "sample string 3",
  "Date": "2025-08-07T06:47:33.0807788+08:00",
  "TimeIn": "2025-08-07T06:47:33.0807788+08:00",
  "TimeOut": "2025-08-07T06:47:33.0807788+08:00",
  "BreakIn": "2025-08-07T06:47:33.0807788+08:00",
  "BreakOut": "2025-08-07T06:47:33.0807788+08:00",
  "Hours": 9.0,
  "Amount": 10.0
}

text/html

Sample:
{"UserId":1,"Token":"sample string 2","EmployeeName":"sample string 3","Date":"2025-08-07T06:47:33.0807788+08:00","TimeIn":"2025-08-07T06:47:33.0807788+08:00","TimeOut":"2025-08-07T06:47:33.0807788+08:00","BreakIn":"2025-08-07T06:47:33.0807788+08:00","BreakOut":"2025-08-07T06:47:33.0807788+08:00","Hours":9.0,"Amount":10.0}

application/xml, text/xml

Sample:
<AttendanceAndTimesheetController.InsertContractTimeEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR2Eazy_WebApi.Controllers">
  <Amount>10</Amount>
  <BreakIn>2025-08-07T06:47:33.0807788+08:00</BreakIn>
  <BreakOut>2025-08-07T06:47:33.0807788+08:00</BreakOut>
  <Date>2025-08-07T06:47:33.0807788+08:00</Date>
  <EmployeeName>sample string 3</EmployeeName>
  <Hours>9</Hours>
  <TimeIn>2025-08-07T06:47:33.0807788+08:00</TimeIn>
  <TimeOut>2025-08-07T06:47:33.0807788+08:00</TimeOut>
  <Token>sample string 2</Token>
  <UserId>1</UserId>
</AttendanceAndTimesheetController.InsertContractTimeEntry>

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

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>