---
title: "Update Tag Group"
description: "How to call Update Tag Group (PATCH /api/tag-groups/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2025-01-15/reference/update_tag_group"
revision: "2025-01-15"
latestUrl: "https://developers.klaviyo.com/en/reference/update_tag_group"
operationId: "update_tag_group"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/tag-groups/{id}"
authentication: "privateKey"
scopes: ["tags:read","tags:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
related: ["https://developers.klaviyo.com/en/v2025-01-15/reference/tags/llms.txt","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tag_groups.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tag_group.md","https://developers.klaviyo.com/en/v2025-01-15/reference/create_tag_group.md","https://developers.klaviyo.com/en/v2025-01-15/reference/delete_tag_group.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tags_for_tag_group.md","https://developers.klaviyo.com/en/v2025-01-15/reference/get_tag_ids_for_tag_group.md"]
---

# Update Tag Group

> This is the Markdown version of https://developers.klaviyo.com/en/v2025-01-15/reference/update_tag_group

```http
PATCH https://a.klaviyo.com/api/tag-groups/{id}
```

Update the tag group with the given tag group ID.

Only a tag group's `name` can be changed. A tag group's `exclusive` or `default` value cannot be changed.

- Revision header: `revision: 2025-01-15` (required)
- Scopes: `tags:read`, `tags:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`

## Example request

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/tag-groups/zyxw9876-vu54-ts32-rq10-zyxwvu654321' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2025-01-15' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "tag-group",
    "id": "zyxw9876-vu54-ts32-rq10-zyxwvu654321",
    "attributes": {
      "name": "My Tag Group"
    }
  }
}'
```

## Path parameters

- `id` (string, required): The Tag Group ID Example: `zyxw9876-vu54-ts32-rq10-zyxwvu654321`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2025-01-15`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `tag-group`
  - `id` (string, required): The Tag Group ID Example: `zyxw9876-vu54-ts32-rq10-zyxwvu654321`
  - `attributes` (object, required)
    - `name` (string, required): The Tag Group name Example: `My Tag Group`
    - `return_fields` (string[], nullable)

### Example request body

```json
{
  "data": {
    "type": "tag-group",
    "id": "zyxw9876-vu54-ts32-rq10-zyxwvu654321",
    "attributes": {
      "name": "My Tag Group"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `tag-group`
  - `id` (string, required): The Tag Group ID Example: `zyxw9876-vu54-ts32-rq10-zyxwvu654321`
  - `attributes` (object, required)
    - `name` (string, required): The Tag Group name Example: `My Tag Group`
    - `exclusive` (boolean, required): If a tag group is non-exclusive, any given related resource (campaign, flow, etc.) can be linked to multiple tags from that tag group. If a tag group is exclusive, any given related resource can only be linked to one tag from that tag group.
    - `default` (boolean, required): Every company automatically has one Default Tag Group. The Default Tag Group cannot be deleted, and no other Default Tag Groups can be created. This value is true for the Default Tag Group and false for all other Tag Groups.
  - `relationships` (object)
    - `tags` (object)
      - `data` (object[]): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
      - `links` (object): Fields nested this deep aren't listed here; they're in the endpoint's OpenAPI document.
  - `links` (object, required)
    - `self` (string<uri>, required)

#### Example response body

```json
{
  "data": {
    "type": "tag-group",
    "id": "zyxw9876-vu54-ts32-rq10-zyxwvu654321",
    "attributes": {
      "name": "My Tag Group",
      "exclusive": true,
      "default": true
    },
    "relationships": {
      "tags": {
        "data": [
          {
            "type": "tag",
            "id": "string"
          }
        ],
        "links": {
          "self": "https://www.example.com",
          "related": "https://www.example.com"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
