POST api/Passengers/SetLatestPosition

Updates the latest location of the passenger

Request Information

URI Parameters

None.

Body Parameters

PassengerLocationDTO
NameDescriptionTypeAdditional information
ContactNr

Passenger Contact Number

string

None.

Lat

Latitude

decimal number

None.

Lon

Longitude

decimal number

None.

LastModifiedUtc

Last Date and Time Location was updated

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactNr": "sample string 1",
  "Lat": 2.1,
  "Lon": 3.1,
  "LastModifiedUtc": "2025-12-11T05:26:00.1554811+02:00"
}

application/xml, text/xml

Sample:
<PassengerLocationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMSWebAPI.Models.TMS.Passenger">
  <ContactNr>sample string 1</ContactNr>
  <LastModifiedUtc>2025-12-11T05:26:00.1554811+02:00</LastModifiedUtc>
  <Lat>2.1</Lat>
  <Lon>3.1</Lon>
</PassengerLocationDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PassengerLocationDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.