---
title: "Assign an asset to a group"
url: "https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce/operations/post__groups_groupid_assets_assetnumber"
---

> Full API specification: https://developers.vzconnect.com/apis/group-api-1/versions/1abd2768-7ba0-4b09-8b60-156957ef21ce.md

# Assign an asset to a group

`POST` `/cmd/v1/groups/{groupid}/assets/{assetnumber}`

Operation ID: `post__groups_groupid_assets_assetnumber`

Assigns the specified asset to the specified group. If the asset is already in the group, no duplicate assignment is created.

## Path parameters

- `assetnumber` (string, required) - The unique asset number identifying the asset to assign to the group.
- `groupid` (string, required) - The unique group ID identifying the group to assign the asset to.

## Responses

- `204` - Successfully assigned the asset to the group.
- `400` - Bad request. The group ID or asset number format is invalid.
- `401` - Unauthorized. The request lacks valid authentication credentials.
- `404` - The specified group or asset was not found.
- `500` - Internal server error. An unexpected error occurred on the server.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Group API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /cmd/v1/groups/{groupid}/assets/{assetnumber}:
    post:
      tags:
        - Group API
      summary: Assign an asset to a group
      description: Assigns the specified asset to the specified group. If the asset is
        already in the group, no duplicate assignment is created.
      parameters:
        - schema:
            type: string
          name: assetnumber
          in: path
          required: true
          description: The unique asset number identifying the asset to assign to the group.
        - schema:
            type: string
          name: groupid
          in: path
          required: true
          description: The unique group ID identifying the group to assign the asset to.
      operationId: post__groups_groupid_assets_assetnumber
      responses:
        "204":
          description: Successfully assigned the asset to the group.
        "400":
          description: Bad request. The group ID or asset number format is invalid.
        "401":
          description: Unauthorized. The request lacks valid authentication credentials.
        "404":
          description: The specified group or asset was not found.
        "500":
          description: Internal server error. An unexpected error occurred on the server.
      deprecated: false
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/cmd/v1/groups/[^/]+/assets/[^/]+/?$
```
