# View Attribute Group Endpoint

## Structure

### Attribute Group

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%; height: 199.375px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 46.5938px;"><td style="height: 46.5938px;">`name`</td><td style="height: 46.5938px;">string</td><td style="height: 46.5938px;">The name of the attribute group (e.g., Size or Colour)</td></tr><tr style="height: 63.3906px;"><td style="height: 63.3906px;">`display_as`</td><td style="height: 63.3906px;">string</td><td style="height: 63.3906px;">The display as of the attribute group (e.g.: dropdown, color\_swatches, image\_swatches, swatches)</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`reference`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The reference of the attribute group</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`attributes`  
</td><td style="height: 29.7969px;">array</td><td style="height: 29.7969px;">An array of [Attribute](https://support.aerocommerce.com/books/api/page/view-attribute-group-endpoint#bkmrk-attribute) objects</td></tr></tbody></table>

### Attribute

<table border="1" id="bkmrk-name-type-descriptio-1" style="border-collapse: collapse; width: 100%; height: 89.3907px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`name`  
</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The name of the attribute group (e.g., Size or Colour)</td></tr><tr style="height: 29.7969px;"><td>`display_name`</td><td>string</td><td>The display name of the attribute</td></tr><tr><td>`reference`</td><td>string</td><td>The reference of the attribute group</td></tr><tr><td>`image`</td><td>object</td><td>The [Image](https://support.aerocommerce.com/books/api/page/view-attribute-group-endpoint#bkmrk-image) of the attribute</td></tr><tr><td>`tags`</td><td>array</td><td>An array of [Tag](https://support.aerocommerce.com/books/api/page/view-attribute-group-endpoint#bkmrk-tag) objects</td></tr></tbody></table>

### Tag

<table border="1" id="bkmrk-name-type-descriptio-2" style="border-collapse: collapse; width: 100%; height: 94.9922px;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr style="height: 29.7969px;"><td style="height: 29.7969px;">**Name**  
</td><td style="height: 29.7969px;">**Type**  
</td><td style="height: 29.7969px;">**Description**  
</td></tr><tr style="height: 29.7969px;"><td style="height: 29.7969px;">`name`</td><td style="height: 29.7969px;">string</td><td style="height: 29.7969px;">The name of the tag (e.g., Small or Red)</td></tr><tr style="height: 35.3984px;"><td style="height: 35.3984px;">`group`</td><td style="height: 35.3984px;">object</td><td style="height: 35.3984px;">The [Tag Group](https://support.aerocommerce.com/books/api/page/view-attribute-group-endpoint#bkmrk-tag-group) of the tag</td></tr></tbody></table>

### Tag Group

<table border="1" id="bkmrk-name-type-descriptio-3" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td></tr><tr><td>`name`</td><td>string</td><td>The name of the tag group (e.g., Size or Colour)</td></tr></tbody></table>

### Image

<table border="1" id="bkmrk-name-type-descriptio-4" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col><col style="width: 33.3731%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td></tr><tr><td>`url`</td><td>string</td><td>The url of the image</td></tr></tbody></table>

## Example Request

```
GET /api/attribute-groups/{id|name}
```

## Example Response

```json
{
    "id": 1,
    "name": "Size",
    "display_as": "dropdown",
    "reference": null,
    "attributes": [
        {
            "id": 1,
            "name": "Small",
            "display_name": "",
            "reference": null,
            "image": {
                "url": null
            },
            "tags": []
        }
    ]
}
```