POST api/Attendance/ImportAttendence?companyid={companyid}&fromdate={fromdate}&todate={todate}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyid

integer

Required

fromdate

date

Required

todate

date

Required

Body Parameters

Collection of clInsertattendanceimport
NameDescriptionTypeAdditional information
empcode

integer

None.

name

string

None.

planedcheckintime

string

None.

actualcheckintime

string

None.

planedcheckouttime

string

None.

actualcheckouttime

string

None.

startedaddress

string

None.

completedaddress

string

None.

fromdate

date

None.

todate

date

None.

companyid

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "empcode": 1,
    "name": "sample string 1",
    "planedcheckintime": "sample string 2",
    "actualcheckintime": "sample string 3",
    "planedcheckouttime": "sample string 4",
    "actualcheckouttime": "sample string 5",
    "startedaddress": "sample string 6",
    "completedaddress": "sample string 7",
    "fromdate": "2026-02-06T21:36:54.4222105+00:00",
    "todate": "2026-02-06T21:36:54.4222105+00:00",
    "companyid": 1
  },
  {
    "empcode": 1,
    "name": "sample string 1",
    "planedcheckintime": "sample string 2",
    "actualcheckintime": "sample string 3",
    "planedcheckouttime": "sample string 4",
    "actualcheckouttime": "sample string 5",
    "startedaddress": "sample string 6",
    "completedaddress": "sample string 7",
    "fromdate": "2026-02-06T21:36:54.4222105+00:00",
    "todate": "2026-02-06T21:36:54.4222105+00:00",
    "companyid": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfAttendanceController.clInsertattendanceimport xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GroundITMainDealerAPI.Controllers">
  <AttendanceController.clInsertattendanceimport>
    <actualcheckintime>sample string 3</actualcheckintime>
    <actualcheckouttime>sample string 5</actualcheckouttime>
    <companyid>1</companyid>
    <completedaddress>sample string 7</completedaddress>
    <empcode>1</empcode>
    <fromdate>2026-02-06T21:36:54.4222105+00:00</fromdate>
    <name>sample string 1</name>
    <planedcheckintime>sample string 2</planedcheckintime>
    <planedcheckouttime>sample string 4</planedcheckouttime>
    <startedaddress>sample string 6</startedaddress>
    <todate>2026-02-06T21:36:54.4222105+00:00</todate>
  </AttendanceController.clInsertattendanceimport>
  <AttendanceController.clInsertattendanceimport>
    <actualcheckintime>sample string 3</actualcheckintime>
    <actualcheckouttime>sample string 5</actualcheckouttime>
    <companyid>1</companyid>
    <completedaddress>sample string 7</completedaddress>
    <empcode>1</empcode>
    <fromdate>2026-02-06T21:36:54.4222105+00:00</fromdate>
    <name>sample string 1</name>
    <planedcheckintime>sample string 2</planedcheckintime>
    <planedcheckouttime>sample string 4</planedcheckouttime>
    <startedaddress>sample string 6</startedaddress>
    <todate>2026-02-06T21:36:54.4222105+00:00</todate>
  </AttendanceController.clInsertattendanceimport>
</ArrayOfAttendanceController.clInsertattendanceimport>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.