POST api/TimeClock/ClockIn
Request Information
URI Parameters
None.
Body Parameters
TimeClockPost| Name | Description | Type | Additional information |
|---|---|---|---|
| APIKey | string |
None. |
|
| DeviceID | string |
None. |
|
| DriverID | integer |
None. |
|
| DriverNumber | string |
None. |
|
| DriverName | string |
None. |
|
| VehicleNumber | string |
None. |
|
| VehicleID | integer |
None. |
|
| StartLatitude | decimal number |
None. |
|
| StartLongitude | decimal number |
None. |
|
| UsingTabletGPS | integer |
None. |
|
| ScheduleID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"APIKey": "sample string 1",
"DeviceID": "sample string 2",
"DriverID": 3,
"DriverNumber": "sample string 4",
"DriverName": "sample string 5",
"VehicleNumber": "sample string 6",
"VehicleID": 7,
"StartLatitude": 8.0,
"StartLongitude": 9.0,
"UsingTabletGPS": 10,
"ScheduleID": 11
}
application/xml, text/xml
Sample:
<TimeClockModel.TimeClockPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProCADMobileService.Models"> <APIKey>sample string 1</APIKey> <DeviceID>sample string 2</DeviceID> <DriverID>3</DriverID> <DriverName>sample string 5</DriverName> <DriverNumber>sample string 4</DriverNumber> <ScheduleID>11</ScheduleID> <StartLatitude>8</StartLatitude> <StartLongitude>9</StartLongitude> <UsingTabletGPS>10</UsingTabletGPS> <VehicleID>7</VehicleID> <VehicleNumber>sample string 6</VehicleNumber> </TimeClockModel.TimeClockPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TimeClockPostReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| message | string |
None. |
|
| ScheduleID | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"message": "sample string 2",
"ScheduleID": 3
}
application/xml, text/xml
Sample:
<TimeClockModel.TimeClockPostReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ProCADMobileService.Models"> <ScheduleID>3</ScheduleID> <message>sample string 2</message> <status>true</status> </TimeClockModel.TimeClockPostReturn>