POST api/EmployeeAttendance/insertRecord

Request Information

URI Parameters

None.

Body Parameters

EmployeeAttendance
NameDescriptionTypeAdditional information
EmployeeAttendanceId

decimal number

None.

AttendanceDate

string

None.

BranchId

decimal number

None.

EditReason

string

None.

Status

string

None.

AttendanceDetails

Collection of EmployeeAttendanceDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeAttendanceId": 1.0,
  "AttendanceDate": "sample string 2",
  "BranchId": 3.0,
  "EditReason": "sample string 4",
  "Status": "sample string 5",
  "AttendanceDetails": [
    {
      "EmployeeAttendanceDetailsId": 1.0,
      "EmployeeId": 2.0,
      "InTime": "sample string 3",
      "OutTime": "sample string 4",
      "InTime2": "sample string 5",
      "OutTime2": "sample string 6",
      "AttendanceStatus": 7
    },
    {
      "EmployeeAttendanceDetailsId": 1.0,
      "EmployeeId": 2.0,
      "InTime": "sample string 3",
      "OutTime": "sample string 4",
      "InTime2": "sample string 5",
      "OutTime2": "sample string 6",
      "AttendanceStatus": 7
    }
  ]
}

application/xml, text/xml

Sample:
<EmployeeAttendance xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZenoxERP.API.Models.Extensions">
  <AttendanceDate>sample string 2</AttendanceDate>
  <AttendanceDetails>
    <EmployeeAttendanceDetails>
      <AttendanceStatus>7</AttendanceStatus>
      <EmployeeAttendanceDetailsId>1</EmployeeAttendanceDetailsId>
      <EmployeeId>2</EmployeeId>
      <InTime>sample string 3</InTime>
      <InTime2>sample string 5</InTime2>
      <OutTime>sample string 4</OutTime>
      <OutTime2>sample string 6</OutTime2>
    </EmployeeAttendanceDetails>
    <EmployeeAttendanceDetails>
      <AttendanceStatus>7</AttendanceStatus>
      <EmployeeAttendanceDetailsId>1</EmployeeAttendanceDetailsId>
      <EmployeeId>2</EmployeeId>
      <InTime>sample string 3</InTime>
      <InTime2>sample string 5</InTime2>
      <OutTime>sample string 4</OutTime>
      <OutTime2>sample string 6</OutTime2>
    </EmployeeAttendanceDetails>
  </AttendanceDetails>
  <BranchId>3</BranchId>
  <EditReason>sample string 4</EditReason>
  <EmployeeAttendanceId>1</EmployeeAttendanceId>
  <Status>sample string 5</Status>
</EmployeeAttendance>

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>