Create and Manage Fleet Groups via API
Use the Fleet Group REST APIs to create logical vehicle groups, assign vehicles to groups, and retrieve grouped fleet views for region- or role-based fleet management.
Before managing fleet groups via the API:
- Obtain a valid access token with
fleet:readandfleet:writescopes. - Note the
vehicle_idvalues for all vehicles to be grouped (retrieve from List Fleet Vehicles).
Fleet groups allow operators to segment vehicles by geography, vehicle type, department, or operational purpose. Once grouped, fleet dashboards and bulk commands can be scoped to a specific group — reducing noise and improving operational efficiency.
-
Create a new fleet group.
POST /v1/fleet/groups HTTP/1.1Authorization: Bearer {access_token}X-Tenant-ID: {tenant_id}Content-Type: application/json{"name": "North Region Fleet","description": "Urban delivery vehicles — northern territory","region": "north-america","tags": ["delivery", "urban"]}Note the returned
group_id(e.g.,grp_fleet_north) for subsequent assignment calls. -
Assign vehicles to the new group one at a time, or repeat for each vehicle.
PUT /v1/fleet/vehicles/{vehicleId}/group HTTP/1.1Authorization: Bearer {access_token}X-Tenant-ID: {tenant_id}Content-Type: application/json{"group_id": "grp_fleet_north"}Repeat this call for every vehicle ID that belongs to the group. For bulk assignments, use the
POST /v1/fleet/groups/{groupId}/bulk-assignendpoint with an array ofvehicle_ids. -
Verify the group membership by listing vehicles in the group.
GET /v1/fleet/groups/grp_fleet_north/vehiclesAuthorization: Bearer {access_token}X-Tenant-ID: {tenant_id}Confirm
data.vehicles[]contains all expected members and thatpagination.total_recordsmatches your expected count. -
Monitor vehicles within the group using the group-scoped status filter.
GET /v1/fleet/vehicles?group_id=grp_fleet_north&status=activeAuthorization: Bearer {access_token}X-Tenant-ID: {tenant_id}This returns only active vehicles in the specified group, enabling a focused operational view for regional dispatchers.
Fleet groups are created and populated. Group-scoped API queries now return only the relevant subset of vehicles, enabling region- or role-based fleet monitoring and command targeting.
Related information