> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atomscale.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Tag Category

> Update a tag category

Updates an existing tag category.

<ParamField path="category_id" type="string" required>
  UUID of the tag category to update
</ParamField>

<ParamField body="name" type="string" required>
  Updated category name
</ParamField>

## Response

Returns the updated category.

<ResponseField name="id" type="string">
  Tag category UUID
</ResponseField>

<ResponseField name="name" type="string">
  Category name
</ResponseField>

<ResponseField name="organization_id" type="string">
  ID of the organization the category belongs to
</ResponseField>

<ResponseField name="tag_count" type="integer">
  Number of tags that belong to this category
</ResponseField>

<RequestExample>
  ```python Python theme={null}
  import requests

  response = requests.patch(
      "https://api.atomscale.ai/tags/categories/b1a2c3d4-1111-2222-3333-444455556666",
      headers={
          "X-API-KEY": "YOUR_API_KEY",
          "Content-Type": "application/json"
      },
      json={
          "name": "Review Stage"
      }
  )
  category = response.json()
  ```

  ```bash cURL theme={null}
  curl -X PATCH "https://api.atomscale.ai/tags/categories/b1a2c3d4-1111-2222-3333-444455556666" \
    -H "X-API-KEY: YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "name": "Review Stage"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": "b1a2c3d4-1111-2222-3333-444455556666",
    "name": "Review Stage",
    "organization_id": "org_abc123",
    "tag_count": 4
  }
  ```
</ResponseExample>
