# create_tag

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

Create a workspace tag, or a team's own tag with team. A workspace tag cannot share a name with a team tag. Returns the tag. Needs write access; a workspace tag needs your person to be a workspace owner or admin, and a team tag needs them in the team.

- Area: Planning
- Needs the write grant.

## Inputs

- `name` (string, required): The tag's name, up to 40 characters, such as search.
- `color` (string, one of: `gray`, `red`, `orange`, `amber`, `green`, `teal`, `cobalt`, `iris`, `pink`, required): The tag's color, such as teal.
- `team` (string): The team the tag belongs to, such as WEB.

## Request

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_tag",
    "arguments": {
      "name": "search",
      "color": "teal",
      "team": "WEB"
    }
  }
}
```

## 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:create \
  -H "Authorization: Bearer $CLANKER_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "search",
    "color": "teal",
    "team": "WEB"
  }'
```
