# update_tag

`tools/call` · `POST /clanker/v1/tags:update`

Rename or recolor a tag. Only the fields given change, and a new name follows onto every ticket and saved view. Returns the tag. Needs write access and the rights create_tag needs for the tag.

- Area: Planning
- Needs the write grant. Idempotent.

## Inputs

- `tag` (string, required): The tag's ID from list_tags.
- `name` (string): A new name, up to 40 characters.
- `color` (string, one of: `gray`, `red`, `orange`, `amber`, `green`, `teal`, `cobalt`, `iris`, `pink`): The tag's color, such as teal.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_tag",
    "arguments": {
      "tag": "Kp2xQ8vLm4Rt",
      "color": "iris"
    }
  }
}
```

## HTTP request

The same call over the clanker HTTP API, with a clanker OAuth access token:

```bash
curl -X POST https://api.clankership.com/clanker/v1/tags:update \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "tag": "Kp2xQ8vLm4Rt",
    "color": "iris"
  }'
```
