POST api/AddCurrentLocation

Request Information

URI Parameters

None.

Body Parameters

AddCuurentLocationPost
NameDescriptionTypeAdditional information
DriverId

integer

None.

CurrentLocationLatLng

string

None.

CurrentLocationAddress

string

None.

CurrentLocationDateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "DriverId": 1,
  "CurrentLocationLatLng": "sample string 2",
  "CurrentLocationAddress": "sample string 3",
  "CurrentLocationDateTime": "2025-12-17T07:02:21.9174006+01:00"
}

application/xml, text/xml

Sample:
<AddCuurentLocationPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Post">
  <CurrentLocationAddress>sample string 3</CurrentLocationAddress>
  <CurrentLocationDateTime>2025-12-17T07:02:21.9174006+01:00</CurrentLocationDateTime>
  <CurrentLocationLatLng>sample string 2</CurrentLocationLatLng>
  <DriverId>1</DriverId>
</AddCuurentLocationPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AddCurrentLocationResponse
NameDescriptionTypeAdditional information
AddedCurrentLocation

CurrentLocationDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "AddedCurrentLocation": {
    "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:
<AddCurrentLocationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cabie.API.Models.CurrentLocation.Response">
  <AddedCurrentLocation>
    <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>
  </AddedCurrentLocation>
</AddCurrentLocationResponse>