# Update a tag

`PUT https://app.clik.so/api/tags/{id}`

> **In short:** Renames a tag or changes its colour. Send at least one of `name` or `color`.

## You need

* **API key permission:** `write`
* **Workspace role:** editor or higher
* **Plan:** any plan, including Free

## Example

```bash
curl -X PUT "https://app.clik.so/api/tags/1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d" \
  -H "Authorization: Bearer $CLIKSO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "promo",
    "color": "#16a34a"
  }'
```

Response 200:

```json
{
  "status": 200,
  "success": true,
  "message": "Success",
  "data": {
    "id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
    "name": "promo",
    "color": "#16a34a",
    "created_at": "2026-10-01T08:00:00.000Z",
    "updated_at": "2026-10-09T09:30:00.000Z",
    "link_count": 4
  }
}
```

## Parameters

| Name | In   | Type   | Required | Description   |
| ---- | ---- | ------ | -------- | ------------- |
| `id` | path | string | yes      | The tag's id. |

## Request body

| Field   | Type           | Required | Description                                                             |
| ------- | -------------- | -------- | ----------------------------------------------------------------------- |
| `name`  | string         | no       | A new name. Cannot be `null` or empty. 1–10 characters                  |
| `color` | string or null | no       | A new colour. `null` or `""` removes it. Pattern `^(#[0-9a-fA-F]{6})?$` |

## Common errors

| Status | Code               | When                                                                                                     |
| ------ | ------------------ | -------------------------------------------------------------------------------------------------------- |
| 401    | `UNAUTHORIZED`     | The API key is missing, malformed or unknown.                                                            |
| 403    | `FORBIDDEN`        | The key only has Read permission, or its creator is a viewer in this workspace.                          |
| 404    | `NOT_FOUND`        | No tag with this id exists in the key's workspace.                                                       |
| 422    | `VALIDATION_ERROR` | Neither field was sent, `name` is empty, null or longer than 10 characters, or `color` is not `#rrggbb`. |
| 429    | `RATE_LIMITED`     | The key went over its per-minute request limit.                                                          |

## Good to know

* Fields you leave out keep their value.
* `color: null` or `color: ""` removes the colour. `name` cannot be cleared.
* `link_count` is the real number of links carrying the tag.

---

Source: https://clik.so/docs/api/tags/update-tag
