---
title: "List active assets in a group"
url: "https://developers.vzconnect.com/apis/non-powered-assets-api-1/versions/b533035a-e30c-4262-8e48-4a8c49989686/operations/V1AssetsGroupByGroupIdGet"
---

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

# List active assets in a group

`GET` `/ast/v1/assets/group/{groupId}`

Operation ID: `V1AssetsGroupByGroupIdGet`

Get all active Assets in Group matching the given groupId. This will include Assets that are in any sub-groups of the given groupId. Sample request: GET /v1/assets/group/G10001 Sample responses: 200 [] 200 [{ "AssetNumber": "A10002", "AssetName": "Flatbed - 2", "Make": "Hino", "Model": "FM1J", "Year": 2006, "Notes": "Requires Service" "ESN": "6598654587987", "PrimaryGroupId": "G10001", "PrimaryGroupName": "East coast fleet" },{ "AssetNumber": "A10003", "AssetName": "Chiller - 1", "Make": "", "Model": "", "Year": null, "Notes": "", "ESN": "11321654879" "PrimaryGroupId": "G10001", "PrimaryGroupName": "East coast fleet" }] 404 { "Message": "The GroupId was not found G99999", }

## Path parameters

- `groupId` (string, required) - The GroupId that identifies the group for which all Assets should be retrieved. Should not be null or empty and should be no more than 45 characters long

## Responses

- `200` - If the request was successful
- `400` - If the groupId was invalid
- `401` - If the authentication credentials were invalid
- `404` - If the groupId 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/group/{groupId}:
    get:
      tags:
        - Non-Powered Assets API
      summary: List active assets in a group
      description: >-
        Get all active Assets in Group matching the given groupId. This will
        include Assets that are in any sub-groups of the given groupId.


        Sample request:
                    
            GET /v1/assets/group/G10001

                    
        Sample responses:
                    
            200
            []
                    
            200
            [{
                "AssetNumber": "A10002",
                "AssetName": "Flatbed - 2",
                "Make": "Hino",
                "Model": "FM1J",
                "Year": 2006,
                "Notes": "Requires Service"
                "ESN": "6598654587987",
                "PrimaryGroupId": "G10001",
                "PrimaryGroupName": "East coast fleet"
            },{
                "AssetNumber": "A10003",
                "AssetName": "Chiller - 1",
                "Make": "",
                "Model": "",
                "Year": null,
                "Notes": "",
                "ESN": "11321654879"
                "PrimaryGroupId": "G10001",
                "PrimaryGroupName": "East coast fleet"
            }]

            404
            {
                "Message": "The GroupId was not found G99999",
            }
      operationId: V1AssetsGroupByGroupIdGet
      parameters:
        - name: groupId
          in: path
          description: The GroupId that identifies the group for which all Assets should
            be retrieved. Should not be null or empty and should be no more than
            45 characters long
          required: true
          schema:
            type: string
            description: The GroupId that identifies the group for which all Assets should
              be retrieved. Should not be null or empty and should be no more
              than 45 characters long
      responses:
        "200":
          description: If the request was successful
          content:
            application/xml: {}
            application/json:
              schema:
                uniqueItems: false
                type: array
                items:
                  $ref: "#/components/schemas/AssetFull"
        "400":
          description: If the groupId was invalid
          content:
            application/xml: {}
            application/json: {}
        "401":
          description: If the authentication credentials were invalid
          content:
            application/xml: {}
            application/json: {}
        "404":
          description: If the groupId was not found
          content:
            application/xml: {}
            application/json: {}
        "500":
          description: If an unknown error occurred when processing the request
          content:
            application/xml: {}
            application/json: {}
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/ast/v1/assets/group/[^/]+/?$
components:
  schemas:
    AssetFull:
      type: object
      properties:
        AssetNumber:
          type: string
        AssetName:
          type: string
        Make:
          type: string
        Model:
          type: string
        Year:
          type: integer
          format: int32
        Notes:
          type: string
        ESN:
          type: string
        PrimaryGroupId:
          type: string
        PrimaryGroupName:
          type: string
```
