---
title: "Retrieve the primary group for a vehicle."
url: "https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d/operations/getVehiclePrimaryGroup"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-api-v1/versions/3941fe83-a6d1-4bef-90e3-c94cadaf0d4d.md

# Retrieve the primary group for a vehicle.

`GET` `/cmd/v1/vehicles/{vehiclenumber}/primarygroup`

Operation ID: `getVehiclePrimaryGroup`

Retrieve the primary group associated with the given Vehicle Number.

## Path parameters

- `vehiclenumber` (string, required) - The Vehicle Number; the unique identifier used to reference the vehicle within the API.

## Responses

- `200` - Successfully retrieved the vehicle's primary group.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/vehicles/{vehiclenumber}/primarygroup:
    get:
      summary: Retrieve the primary group for a vehicle.
      description: Retrieve the primary group associated with the given Vehicle Number.
      operationId: getVehiclePrimaryGroup
      tags:
        - Vehicle API
      parameters:
        - name: vehiclenumber
          in: path
          required: true
          description: The Vehicle Number; the unique identifier used to reference the
            vehicle within the API.
          schema:
            type: string
            example: "890001"
      responses:
        "200":
          description: Successfully retrieved the vehicle's primary group.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/VehiclePrimaryGroup"
              example:
                VehicleNumber: "890001"
                PrimaryGroupName: North Region
                PrimaryGroupId: "12345"
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json: {}
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/vehicles/[^/]+/primarygroup/?$
components:
  schemas:
    VehiclePrimaryGroup:
      type: object
      description: A vehicle's primary group, as returned by the GET primary group method.
      properties:
        VehicleNumber:
          type: string
          description: The Vehicle Number used in the request.
          example: "890001"
        PrimaryGroupName:
          type: string
          description: The name of the vehicle's primary group.
          example: North Region
        PrimaryGroupId:
          type: string
          description: The Group ID of the vehicle's primary group; the unique identifier
            assigned when creating and modifying groups within REVEAL's Admin
            section.
          example: "12345"
```
