v1

latestOpenAPI 3.1.02026-07-2617501.1 MB

List all the vehicles of a group

get/v1/groups/{id}/vehicles

Path parameters

idinteger required

Specify the ID of the group for which you want to view the associated vehicles.

Query parameters

updated_afterstring date

Specify a date after which you want to view the associated vehicles.

Headers

X-Time-Zonestring

Specify the timezone for formatting the timestamps.

X-Metric-Unitsboolean

Specify if you want to use the Metric units or the Imperial units. TRUE: Metric units. FALSE: Imperial Units

X-User-Idinteger

Specify the ID of the Fleet Admin or the Fleet Manager who is accessing this endpoint.

Response

200

Example response

{
  "vehicles": [
    {
      "vehicle": {
        "id": 4565,
        "number": "301",
        "status": "active",
        "make": "Demo",
        "model": "Vehicle"
      }
    }
  ],
  "pagination": {
    "per_page": 25,
    "page_no": 1,
    "total": 2
  }
}