POST api/classe/drivershift
Request Information
URI Parameters
None.
Body Parameters
DriverShiftRequestModelName | Description | Type | Additional information |
---|---|---|---|
Token |
The token returned after login used for authentication |
string |
None. |
DriverId |
The driver id returned after login used for authentication |
unsigned integer |
None. |
ShiftStartTime |
The shift start time |
date |
None. |
ShiftEndTime |
The shift end time |
date |
None. |
ShiftStatus |
The status of the shift |
Status |
None. |
BreakCount |
The number of breaks during the shift |
integer |
None. |
BreakDuration |
The total duration of the breaks in seconds |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Token": "sample string 1", "DriverId": 2, "ShiftStartTime": "2025-04-27T15:54:48.0405828+00:00", "ShiftEndTime": "2025-04-27T15:54:48.0405828+00:00", "ShiftStatus": 0, "BreakCount": 5, "BreakDuration": 6 }
application/xml, text/xml
Sample:
<DriverShiftRequestModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Token>sample string 1</Token> <DriverId>2</DriverId> <ShiftStartTime>2025-04-27T15:54:48.0405828+00:00</ShiftStartTime> <ShiftEndTime>2025-04-27T15:54:48.0405828+00:00</ShiftEndTime> <ShiftStatus>ShiftStart</ShiftStatus> <BreakCount>5</BreakCount> <BreakDuration>6</BreakDuration> </DriverShiftRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json
Sample:
true
application/xml, text/xml
Sample:
<boolean>true</boolean>