POST api/AddIsOnline
Request Information
URI Parameters
None.
Body Parameters
AddIsOnlinePost| Name | Description | Type | Additional information |
|---|---|---|---|
| DriverId | integer |
None. |
|
| IsOnline | boolean |
None. |
|
| LastOnlineDateTime | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"DriverId": 1,
"IsOnline": true,
"LastOnlineDateTime": "2025-12-17T07:04:57.2374638+01:00"
}
application/xml, text/xml
Sample:
<AddIsOnlinePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Post"> <DriverId>1</DriverId> <IsOnline>true</IsOnline> <LastOnlineDateTime>2025-12-17T07:04:57.2374638+01:00</LastOnlineDateTime> </AddIsOnlinePost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
AddIsOnlineResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Online | CurrentLocationDetails |
None. |
Response Formats
application/json, text/json
Sample:
{
"Online": {
"CurrentLocationId": 1,
"DriverId": 1,
"IsOnRide": true,
"CurrentLocationLatLng": "sample string 2",
"CurrentLocationAddress": "sample string 3",
"CurrentLocationDateTime": "sample string 4",
"IsOnline": true,
"OnRideId": 1,
"LastOnlineDateTime": "sample string 5"
}
}
application/xml, text/xml
Sample:
<AddIsOnlineResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Response">
<Online>
<CurrentLocationAddress>sample string 3</CurrentLocationAddress>
<CurrentLocationDateTime>sample string 4</CurrentLocationDateTime>
<CurrentLocationId>1</CurrentLocationId>
<CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
<DriverId>1</DriverId>
<IsOnRide>true</IsOnRide>
<IsOnline>true</IsOnline>
<LastOnlineDateTime>sample string 5</LastOnlineDateTime>
<OnRideId>1</OnRideId>
</Online>
</AddIsOnlineResponse>