---
title: "Set an asset's primary group"
url: "https://developers.vzconnect.com/apis/non-powered-assets-api-1/versions/b533035a-e30c-4262-8e48-4a8c49989686/operations/V1AssetsByAssetNumberPrimaryGroupByPrimaryGroupIdPut"
---

> Full API specification: https://developers.vzconnect.com/apis/non-powered-assets-api-1/versions/b533035a-e30c-4262-8e48-4a8c49989686.md

# Set an asset's primary group

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

Operation ID: `V1AssetsByAssetNumberPrimaryGroupByPrimaryGroupIdPut`

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.0
info:
  title: Non-Powered Assets API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /ast/v1/assets/{assetNumber}/primaryGroup/{primaryGroupId}:
    put:
      tags:
        - Non-Powered Assets API
      summary: Set an asset's primary group
      description: 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/[^/]+/?$
```
