Location Entries

Update Location Entry

Updates an existing LocationEntry

patch/vehicles/{vehicle_id}/location_entries/{id}

Request

Path parameters

vehicle_idstring required
idstring required

Request body

contact_idinteger nullable
datestring date-time

We recommend using ISO-8601 formatted dates to avoid ambiguity.

latitudenumber
longitudenumber

Example request

{
  "date": "2023-03-14T13:46:27-06:00"
}

Response

OK

idinteger
created_atstring date-time

The date and time at which this record was created.

updated_atstring date-time

The date and time at which this record was most recently updated.

datestring date-time required

The date and time at which this Location Entry was recorded.

vehicle_idinteger
item_type'Vehicle' | 'Equipment' required

The type of object that this Location Entry is associated with.

item_idinteger nullable required
locatable_type'FuelEntry' | 'ServiceEntry' | 'SubmittedInspectionForm' nullable required

The type of object that triggered the creation of this Location Entry, if applicable.

locatable_idinteger nullable required
contact_idinteger nullable required
addressstring nullable required

The full address where this Location Entry took place.

is_currentboolean required

Indicates whether this Location Entry is the most recent one for this object.

locationstring required

A string representation of the recorded location.

Example response

{
  "created_at": "2023-03-14T13:46:27-06:00",
  "updated_at": "2023-03-14T13:46:27-06:00",
  "date": "2023-03-14T13:46:27-06:00",
  "location": "POINT (33.515000,-86.807610)",
  "geolocation": {
    "latitude": 33.515,
    "longitude": -86.80761
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.