POST api/v1/drivetrip

Request Information

URI Parameters

None.

Body Parameters

DriveTripSearch
NameDescriptionTypeAdditional information
vin

string

Required

startdate

date

None.

nextstartdate

date

None.

limit

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "vin": "sample string 1",
  "startdate": "2024-11-16T11:28:03.909Z",
  "nextstartdate": "2024-11-16T11:28:03.909Z",
  "limit": 2
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of DriveTrip
NameDescriptionTypeAdditional information
id

string

None.

start

date

None.

end

date

None.

totalduration

decimal number

None.

totaldistance

integer

None.

fuelconsumption

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": "sample string 1",
    "start": "2024-11-16T11:28:03.927Z",
    "end": "2024-11-16T11:28:03.927Z",
    "totalduration": 4.1,
    "totaldistance": 5,
    "fuelconsumption": 6
  },
  {
    "id": "sample string 1",
    "start": "2024-11-16T11:28:03.927Z",
    "end": "2024-11-16T11:28:03.927Z",
    "totalduration": 4.1,
    "totaldistance": 5,
    "fuelconsumption": 6
  }
]