---
title: "Update the primary group for a vehicle."
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/updateVehiclePrimaryGroup"
---

> Full API specification: https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2.md

# Update the primary group for a vehicle.

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

Operation ID: `updateVehiclePrimaryGroup`

## Before you start Before you make your first API call, make sure you have the following: - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace. - You have the Client ID and Client Secret for your integration. - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken). > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy). ## Purpose Update a vehicle's primary group. If the Vehicle Number is currently assigned to a primary group, the vehicle will be updated to reflect the Group ID provided. The PrimaryGroupId is the Group ID assigned when creating and modifying groups within REVEAL's Admin section.

## Path parameters

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

## Request body

Content types: `application/json`

## Responses

- `204` - Primary group successfully updated.
- `400` - Bad request. The request body is invalid.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - The Vehicle Number (or other unique identifier used for the call) was not found.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Verizon Connect API
  version: 1.0.0
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/vehicles/{vehiclenumber}/primarygroup:
    put:
      summary: Update the primary group for a vehicle.
      description: |-
        ## Before you start

        Before you make your first API call, make sure you have the following:

        - Your Verizon Connect account manager or administrator has requested a Client ID and Client Secret for your integration in Reveal Marketplace.
        - You have the Client ID and Client Secret for your integration.
        - Get an access token using your Client ID and Client Secret. For instructions, read [get your token](/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/getToken).

        > If you are maintaining an existing integration configured before **November 27, 2026** using an **App ID** and **legacy credentials**, follow the [Call the APIs with legacy credentials Guide](/guides/legacy).

        ## Purpose

        Update a vehicle's primary group. If the Vehicle Number is currently assigned to a primary group, the vehicle will be updated to reflect the Group ID provided. The PrimaryGroupId is the Group ID assigned when creating and modifying groups within REVEAL's Admin section.
      operationId: updateVehiclePrimaryGroup
      tags:
        - Vehicle API [Legacy]
      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"
      requestBody:
        description: New primary group assignment details.
        content:
          application/json:
            schema:
              type: object
              description: Request body to update a vehicle's primary group.
              required:
                - PrimaryGroupId
              properties:
                PrimaryGroupId:
                  type: string
                  description: The Group ID that corresponds to the Primary Group the vehicle is
                    being added to. This is the unique identifier assigned when
                    creating and modifying groups within REVEAL's Admin section.
                  example: "12345"
              title: PrimaryGroupUpdateRequest
            example:
              PrimaryGroupId: "12345"
      responses:
        "204":
          description: Primary group successfully updated.
          content:
            application/json: {}
        "400":
          description: Bad request. The request body is invalid.
          content:
            application/json: {}
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
          content:
            application/json: {}
        "404":
          description: The Vehicle Number (or other unique identifier used for the call)
            was not found.
        "500":
          description: Internal server error.
          content:
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/vehicles/[^/]+/primarygroup/?$
```
