---
title: "TagGroup (Calendar)"
description: "A grouping of tags for organizational purposes."
---

> Documentation Index
> Fetch the complete documentation index at: https://planningcenterkit.mackenly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TagGroup (Calendar)

A grouping of tags for organizational purposes.

| Property | Value |
| --- | --- |
| Product | [Calendar](/reference/calendar/) (`pco.calendar`, API version `2026-06-22`) |
| Resource type | `TagGroup` |
| TypeScript | `Calendar.TagGroup`, attributes `Calendar.TagGroupAttributes`, schema `Calendar.TagGroupSchema` |
| Planning Center path | `/calendar/v2/tag_groups` |
| Planning Center docs | [TagGroup](https://api.planningcenteronline.com/docs/apps/calendar/versions/2026-06-22/vertices/tag_group) |

## How to reach it

| Client path | Returns | Filters | Create |
| --- | --- | --- | --- |
| `pco.calendar.tag_groups` | Collection | `required` | Yes |
| `pco.calendar.tags.id(tagId).tag_group` | Collection |  | No |

From a collection, `.id(tagGroupId)` addresses one TagGroup: `pco.calendar.tag_groups.id(tagGroupId)`. Collections support [`where`, `include`, `order`, and pagination](/guides/querying/); single resources have `get()`.

## Attributes

On `Calendar.TagGroupAttributes`. Every resource also has `id` and `type` (`'TagGroup'`) next to its attributes.

| Name | Type | Description |
| --- | --- | --- |
| `created_at` | `string \| null` | UTC time at which the tag group was created |
| `name` | `string \| null` | The name of the tag group |
| `required` | `boolean \| null` | See [details](#required). |
| `updated_at` | `string \| null` | UTC time at which the tag group was updated |

### Attribute details

#### `required` {#required}

- `true` indicates tag from this tag group must be applied when creating an event

## Relationships and includes

Side-load with `include()` (or `get({ include })`) and read with `related(resource, name)`: `events`, `tags`.

## Querying

### Where

`where(field, value)` for equality; `where(field, op, value)` with the operators listed.

| Field | Value type | Operators |
| --- | --- | --- |
| `created_at` | `string \| Date` | `gt`, `gte`, `lt`, `lte` |
| `name` | `string` | Equality only |
| `updated_at` | `string \| Date` | `gt`, `gte`, `lt`, `lte` |

### Order

`order(...)` accepts these fields, ascending, or descending with a `-` prefix: `name`.

### Filters

`filter(...)` names depend on the edge you query through:

| Edge | Filters |
| --- | --- |
| `pco.calendar.tag_groups` | `required` |

## Edges

Follow these from one TagGroup, `ref = pco.calendar.tag_groups.id(tagGroupId)`:

| Edge | Leads to | Returns | Filters | Create |
| --- | --- | --- | --- | --- |
| `ref.events` | [Event](/reference/calendar/event/) | Collection |  | No |
| `ref.tags` | [Tag](/reference/calendar/tag/) | Collection |  | No |

## Writing

| Property | Value |
| --- | --- |
| Create | Yes, `create()` on `pco.calendar.tag_groups` |
| Update | Yes, `update()` on a reference |
| Delete | Yes, `delete()` on a reference |

### Create attributes

Typed as `Calendar.TagGroupSchema['create']`.

| Attribute | Type |
| --- | --- |
| `name` | `string \| null` |
| `required` | `boolean \| null` |

### Update attributes

Typed as `Calendar.TagGroupSchema['update']`.

| Attribute | Type |
| --- | --- |
| `name` | `string \| null` |
| `required` | `boolean \| null` |

See [Writing data](/guides/writing-data/).

## Example

```ts
import type { Calendar } from '@mackenly/planningcenterkit';

const page = await pco.calendar.tag_groups.order('name').perPage(25).list();
const items: Calendar.TagGroup[] = page.data;
```

Source: https://planningcenterkit.mackenly.com/reference/calendar/tag-group/index.mdx
