---
title: "Resource (Groups)"
description: "A file or link resource that can be shared with a group."
---

> 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.

# Resource (Groups)

A file or link resource that can be shared with a group.

| Property | Value |
| --- | --- |
| Product | [Groups](/reference/groups/) (`pco.groups`, API version `2026-11-10`) |
| Resource type | `Resource` |
| TypeScript | `Groups.Resource`, attributes `Groups.ResourceAttributes`, schema `Groups.ResourceSchema` |
| Planning Center path | `/groups/v2/group_types/{group_type_id}/resources` |
| Planning Center docs | [Resource](https://api.planningcenteronline.com/docs/apps/groups/versions/2026-11-10/vertices/resource) |

## How to reach it

| Client path | Returns | Filters | Create |
| --- | --- | --- | --- |
| `pco.groups.groups.id(groupId).resources` | Collection | `leaders` | No |
| `pco.groups.group_types.id(groupTypeId).resources` | Collection | `leaders` | No |
| `pco.groups.group_types.id(groupTypeId).resources.id(resourceId).download` | Collection |  | No |
| `pco.groups.group_types.id(groupTypeId).resources.id(resourceId).visit` | Collection |  | No |

From a collection, `.id(resourceId)` addresses one Resource: `pco.groups.group_types.id(groupTypeId).resources.id(resourceId)`. Collections support [`where`, `include`, `order`, and pagination](/guides/querying/); single resources have `get()`.

## Attributes

On `Groups.ResourceAttributes`. Every resource also has `id` and `type` (`'Resource'`) next to its attributes.

| Name | Type | Description |
| --- | --- | --- |
| `description` | `string \| null` | The description of the resource written by the person who created it. |
| `last_updated` | `string \| null` | The date and time the resource was last updated. |
| `name` | `string \| null` | The name/title of the resource. |
| `type` | `string \| null` | Either `FileResource` or `LinkResource` |
| `visibility` | `string \| null` | Possible values: `leaders` or `members` |

## Relationships and includes

Planning Center documents no includes for this resource.

| Relationship | Type | To | Includable |
| --- | --- | --- | --- |
| `created_by` | To one | [Person](/reference/groups/person/) | No |

## Querying

No documented `where` fields.

### Order

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

### Filters

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

| Edge | Filters |
| --- | --- |
| `resources` on [Group](/reference/groups/group/) | `leaders` |
| `resources` on [GroupType](/reference/groups/group-type/) | `leaders` |

## Edges

Follow these from one Resource, `ref = pco.groups.group_types.id(groupTypeId).resources.id(resourceId)`:

| Edge | Leads to | Returns | Filters | Create |
| --- | --- | --- | --- | --- |
| `ref.download` | [Resource](/reference/groups/resource/) | Collection |  | No |
| `ref.visit` | [Resource](/reference/groups/resource/) | Collection |  | No |

## Writing

| Property | Value |
| --- | --- |
| Create | No |
| Update | No |
| Delete | No |

## Example

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

const groupTypeId = '1'; // GroupType id

const page = await pco.groups.group_types.id(groupTypeId).resources.order('last_updated').perPage(25).list();
const items: Groups.Resource[] = page.data;
```

Source: https://planningcenterkit.mackenly.com/reference/groups/resource/index.mdx
