POST api/care/gps/log-event
Request Information
URI Parameters
None.
Body Parameters
LogGpsEventRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| gpsEventToLog | GpsEventToLog |
None. |
Request Formats
application/json, text/json
Sample:
{
"gpsEventToLog": {
"eventType": 1,
"eventDateTimeInUtc": "2026-05-05T07:17:00.6442963-04:00",
"eventPayload": "sample string 2",
"eventLocationLongitude": 3.1,
"eventLocationLatitude": 4.1,
"eventDestinationLongitude": 1.1,
"eventDestinationLatitude": 1.1
}
}
application/xml, text/xml
Sample:
<LogGpsEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.RequestModels">
<gpsEventToLog xmlns:d2p1="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.Models.Gps">
<d2p1:eventDateTimeInUtc>2026-05-05T07:17:00.6442963-04:00</d2p1:eventDateTimeInUtc>
<d2p1:eventDestinationLatitude>1.1</d2p1:eventDestinationLatitude>
<d2p1:eventDestinationLongitude>1.1</d2p1:eventDestinationLongitude>
<d2p1:eventLocationLatitude>4.1</d2p1:eventLocationLatitude>
<d2p1:eventLocationLongitude>3.1</d2p1:eventLocationLongitude>
<d2p1:eventPayload>sample string 2</d2p1:eventPayload>
<d2p1:eventType>LogIn</d2p1:eventType>
</gpsEventToLog>
</LogGpsEventRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GpsEventToDownload| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Type | GpsEventTypes |
None. |
|
| DateTimeInUtc | date |
None. |
|
| Payload | string |
None. |
|
| LocationLongitude | decimal number |
None. |
|
| LocationLatitude | decimal number |
None. |
|
| DestinationLongitude | decimal number |
None. |
|
| DestinationLatitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"eventId": 1,
"eventType": 1,
"eventDateTimeInUtc": "2026-05-05T07:17:00.6550435-04:00",
"eventPayload": "sample string 3",
"eventLocationLongitude": 4.1,
"eventLocationLatitude": 5.1,
"eventDestinationLongitude": 1.1,
"eventDestinationLatitude": 1.1
}
application/xml, text/xml
Sample:
<GpsEventToDownload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CWI.Mobile.Domain.Models.Gps"> <eventDateTimeInUtc>2026-05-05T07:17:00.6550435-04:00</eventDateTimeInUtc> <eventDestinationLatitude>1.1</eventDestinationLatitude> <eventDestinationLongitude>1.1</eventDestinationLongitude> <eventLocationLatitude>5.1</eventLocationLatitude> <eventLocationLongitude>4.1</eventLocationLongitude> <eventPayload>sample string 3</eventPayload> <eventType>LogIn</eventType> <Id>1</Id> </GpsEventToDownload>