# Update Attribute Group Endpoint

## Structure

<table border="1" id="bkmrk-name-type-descriptio" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td>**Name**  
</td><td>**Type**  
</td><td>**Description**  
</td><td>**Required**  
</td></tr><tr><td>`name`</td><td>string</td><td>The name of the attribute group (e.g., Size or Colour)</td><td>No</td></tr><tr><td>`display_as`</td><td>string</td><td>The display as of the attribute group (e.g.: dropdown, color\_swatches, image\_swatches, swatches)</td><td>No</td></tr><tr><td>`reference`</td><td>string</td><td>The reference of the attribute group</td><td>No</td></tr></tbody></table>

## Example Request

```
PUT /api/attribute-groups/
```

```json
{
    "name": "Updated Size",
    "display_as": "swatches"
}
```

## Example Response

```json
{
    "attributeGroup": {
        "id": 1
    }
}
```