List all the vehicles of a group
get/v1/groups/{id}/vehicles
Request
- Base URLhttps://api.gomotive.com
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
}
}Changes
No recorded changes to this operation across all 1 revision of this API.