# Update a tag

**Publié le** : 2026-05-08
**Catégorie** : Core CMS

## `PUT /tags/:id`

**Update a tag**

Updates a tag's name, slug, or description.

Required permissions: `tags.update`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Request Body

Content-Type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | No | Display name. 1-255 characters |
| `slug` | string | No | URL-friendly identifier, unique per site and locale. 1-255 characters |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `404` | Not found |
| `422` | Validation error |


### Examples

```bash
curl -X PUT https://api.lynkow.com/v1/tags/1 \
  -H "Authorization: Bearer $API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "JS / JavaScript"}'
```

### Response Example

```json
{
  "data": {
    "id": 1,
    "name": "JS / JavaScript",
    "slug": "javascript",
    "locale": "en",
    "contentCount": 15,
    "createdAt": "2025-01-08T10:00:00.000Z",
    "updatedAt": "2025-04-06T16:00:00.000Z"
  }
}
```

---