---
search:
  tags:
    - Operations
    - POST
seo:
  description: >-
    Replaces a tag with another on every card; a card that has both keeps one.
    Returns at once;… Reference for the POST /v1/tags/merge endpoint in the Teak
    API.
sidebar:
  label: Merge a tag into another
  badge: POST
title: Merge a tag into another
type: openapi-operation
---
Replaces a tag with another on every card; a card that has both keeps one. Returns at once; poll the operation for progress. One tag change runs at a time per account.

`POST /v1/tags/merge`

**Request body** (`application/json`, required)

- `from` (string, required) — The tag to merge away, matched ignoring case.
- `into` (string, required) — The tag to keep.

Request body example:

```json
{
  "from": "string",
  "into": "string"
}
```

**Responses**

- `202` — Tag change started
- `400` — Invalid tag name
- `404` — No card has the tag
- `409` — Another tag change is still running (\`TAG\_OPERATION\_RUNNING\`)

Response example, 202:

```json
{
  "id": "string",
  "kind": "rename",
  "from": "string",
  "to": "string",
  "status": "running",
  "total": 0,
  "processed": 0,
  "changed": 0,
  "error": "string",
  "createdAt": 0,
  "updatedAt": 0,
  "completedAt": 0,
  "operationId": "string"
}
```
