---
title: "Set an asset's primary group"
url: "https://developers.vzconnect.com/apis/verizon-connect-api/versions/50310ce9-d69d-4329-ac0b-f98a90ed73e2/operations/V1AssetsByAssetNumberPrimaryGroupByPrimaryGroupIdPut"
---

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

# Set an asset's primary group

`PUT` `/ast/v1/assets/{assetNumber}/primaryGroup/{primaryGroupId}`

Operation ID: `V1AssetsByAssetNumberPrimaryGroupByPrimaryGroupIdPut`

## 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 Sets the primary group of the Asset, identified by assetNumber, to be the group identified by primaryGroupId.

## Path parameters

- `assetNumber` (string, required) - The AssetNumber that defines the Asset that will be updated. Should not be null or empty and should be no more than 96 characters long
- `primaryGroupId` (string, required) - The GroupId that will be set as the primary group for the assetNumber. Should not be null or empty and should be no more than 45 character long

## Responses

- `204` - If the request was successful
- `400` - If the request was invalid. For example, the AssetNumber or primaryGroupId was invalid.
- `401` - If the authentication credentials were invalid
- `404` - If the assetNumber or primaryGroupId was not found
- `500` - If an unknown error occurred when processing the request

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Verizon Connect API
  version: 1.0.0
servers:
  - url: https://api.us.vzconnect.com
paths:
  /ast/v1/assets/{assetNumber}/primaryGroup/{primaryGroupId}:
    put:
      tags:
        - Non-Powered Assets API [Legacy]
      summary: Set an asset's primary group
      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

        Sets the primary group of the Asset, identified by assetNumber, to be the group identified by primaryGroupId.
      operationId: V1AssetsByAssetNumberPrimaryGroupByPrimaryGroupIdPut
      parameters:
        - name: assetNumber
          in: path
          description: The AssetNumber that defines the Asset that will be updated. Should
            not be null or empty and should be no more than 96 characters long
          required: true
          schema:
            type: string
            description: The AssetNumber that defines the Asset that will be updated. Should
              not be null or empty and should be no more than 96 characters long
        - name: primaryGroupId
          in: path
          description: The GroupId that will be set as the primary group for the
            assetNumber. Should not be null or empty and should be no more than
            45 character long
          required: true
          schema:
            type: string
            description: The GroupId that will be set as the primary group for the
              assetNumber. Should not be null or empty and should be no more
              than 45 character long
      responses:
        "204":
          description: If the request was successful
        "400":
          description: If the request was invalid. For example, the AssetNumber or
            primaryGroupId was invalid.
        "401":
          description: If the authentication credentials were invalid
        "404":
          description: If the assetNumber or primaryGroupId was not found
        "500":
          description: If an unknown error occurred when processing the request
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/ast/v1/assets/[^/]+/primaryGroup/[^/]+/?$
```
