timeclock.addclocktime

Add Clock Time.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
employee (required)integerEmployee id
datein (required)varcharClock in time timestamp
dateout (accepted)varcharClock out time timestamp
onlyin (accepted)enum (0, 1)0: Add clock in and clock out time
1: Just add clock in time
schedule (accepted)integerPosition id
notes (accepted)varcharNotes
remote_site (accepted)integerRemote Site
tips (accepted)varcharTips

DOCUMENTATION

GET
Add clock time (require parameters datein and dateout) or only clock in (require parameters datein and onlyin set to 1) for an employee with the given id.
Level 5 is required (all users can fetch this module)

--
Example Request:

{
   "module":"timeclock.addclocktime",
   "method":"GET",
   "request":{
      "employee":"159345",
      "datein":"June 09, 2017 09:00 AM",
      "dateout":"June 09, 2017 05:00 PM"
   }
}

Example response:

{
    "status": 1,
    "data": "Clock time added.",
    "token": "xxxxxxx"
}