# Update Tag Endpoint

## Structure

### Tag

<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 tag</td><td>No</td></tr><tr><td>`slug`</td><td>string</td><td>The slug of the tag</td><td>No</td></tr><tr><td>`reference`</td><td>string</td><td>The reference of the tag</td><td>No</td></tr><tr><td>`image`</td><td>object</td><td>The [Image](https://support.aerocommerce.com/books/api/page/update-tag-endpoint#bkmrk-image) of the tag</td><td>No</td></tr><tr><td>`has_slug`</td><td>boolean</td><td>Whether the tag has a slug or not</td><td>No</td></tr></tbody></table>

### Image

<table border="1" id="bkmrk-name-type-descriptio-1" 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>`src`</td><td>string</td><td>The source url of the image</td><td>Yes</td></tr></tbody></table>

## Example Request

```
PUT /api/tag-groups/{id|name}/tags/{id|name}
```

```json
{
    "name": "Medium",
    "slug": "med-ium"
}
```

## Example Response

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