---
title: "ItemAssignment (Services)"
description: "An assignment of a person or position to a plan item."
---

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

# ItemAssignment (Services)

An assignment of a person or position to a plan item.

| Property | Value |
| --- | --- |
| Product | [Services](/reference/services/) (`pco.services`, API version `2018-11-01`) |
| Resource type | `ItemAssignment` |
| TypeScript | `Services.ItemAssignment`, attributes `Services.ItemAssignmentAttributes`, schema `Services.ItemAssignmentSchema` |
| Planning Center path | `/services/v2/service_types/{service_type_id}/plans/{plan_id}/items/{item_id}/item_assignments` |
| Planning Center docs | [ItemAssignment](https://api.planningcenteronline.com/docs/apps/services/versions/2018-11-01/vertices/item_assignment) |

## How to reach it

| Client path | Returns | Filters | Create |
| --- | --- | --- | --- |
| `pco.services.songs.id(songId).last_scheduled_item.id(itemId).item_assignments` | Collection |  | Yes |

From a collection, `.id(itemAssignmentId)` addresses one ItemAssignment: `pco.services.songs.id(songId).last_scheduled_item.id(itemId).item_assignments.id(itemAssignmentId)`. Collections support [`where`, `include`, `order`, and pagination](/guides/querying/); single resources have `get()`.

## Attributes

On `Services.ItemAssignmentAttributes`. Every resource also has `id` and `type` (`'ItemAssignment'`) next to its attributes.

| Name | Type | Description |
| --- | --- | --- |
| `assignable_type` | `string \| null` | Possible values: `Person` or `TeamPosition`. |

## Relationships and includes

Planning Center documents no includes for this resource.

| Relationship | Type | To | Includable |
| --- | --- | --- | --- |
| `assignable` | To one | [Person](/reference/services/person/) | No |
| `item` | To one | [Item](/reference/services/item/) | No |
| `plan` | To one | [Plan](/reference/services/plan/) | No |

## Querying

No documented `where` fields.

No documented `order` fields.

## Edges

This resource has no documented edges.

## Writing

| Property | Value |
| --- | --- |
| Create | Yes, `create()` on `item_assignments` on [Item](/reference/services/item/) |
| Update | No |
| Delete | Yes, `delete()` on a reference |

### Create attributes

Typed as `Services.ItemAssignmentSchema['create']`.

| Attribute | Type |
| --- | --- |
| `assignable_id` | `string` |
| `assignable_type` | `string \| null` |

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

## Example

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

const songId = '1'; // Song id
const itemId = '1'; // Item id

const page = await pco.services.songs.id(songId).last_scheduled_item.id(itemId).item_assignments.perPage(25).list();
const items: Services.ItemAssignment[] = page.data;
```

Source: https://planningcenterkit.mackenly.com/reference/services/item-assignment/index.mdx
