Manage options for a public plan
| Property | Value |
|---|---|
| Product | Services (pco.services, API version 2018-11-01) |
| Resource type | PublicView |
| TypeScript | Services.PublicView, attributes Services.PublicViewAttributes, schema Services.PublicViewSchema |
| Planning Center path | /services/v2/service_types/{service_type_id}/public_view |
| Planning Center docs | PublicView |
How to reach it
| Client path | Returns | Filters | Create |
|---|---|---|---|
pco.services.service_types.id(serviceTypeId).public_view |
Collection | No |
From a collection, .id(publicViewId) addresses one PublicView: pco.services.service_types.id(serviceTypeId).public_view.id(publicViewId). Collections support where, include, order, and pagination; single resources have get().
Attributes
On Services.PublicViewAttributes. Every resource also has id and type ('PublicView') next to its attributes.
| Name | Type | Description |
|---|---|---|
amazon |
boolean | null |
|
headers |
boolean | null |
|
item_descriptions |
boolean | null |
|
item_lengths |
boolean | null |
|
itunes |
boolean | null |
|
media_items |
boolean | null |
|
regular_items |
boolean | null |
|
series_and_plan_titles |
boolean | null |
|
series_artwork |
boolean | null |
|
service_times |
boolean | null |
|
song_items |
boolean | null |
|
spotify |
boolean | null |
|
vimeo |
boolean | null |
|
youtube |
boolean | null |
Querying
No documented where fields.
No documented order fields.
Edges
This resource has no documented edges.
Writing
| Property | Value |
|---|---|
| Create | No |
| Update | No |
| Delete | No |
Example
import type { Services } from '@mackenly/planningcenterkit';
const serviceTypeId = '1'; // ServiceType id
const page = await pco.services.service_types.id(serviceTypeId).public_view.perPage(25).list();
const items: Services.PublicView[] = page.data;