ResourceFolder
An organizational folder containing rooms or resources.
Example Request
curl https://api.planningcenteronline.com/calendar/v2/resource_folders
Example Object
{
"type": "ResourceFolder",
"id": "1",
"attributes": {
"ancestry": "string",
"created_at": "2000-01-01T12:00:00Z",
"kind": "string",
"name": "string",
"path_name": "string",
"updated_at": "2000-01-01T12:00:00Z"
},
"relationships": {}
}
Attributes
| Name | Type | Description |
|---|---|---|
ancestry |
string |
|
created_at |
date_time |
UTC time at which the folder was created |
id |
primary_key |
Unique identifier for the folder |
kind |
string |
The type of folder, can either be |
name |
string |
The folder name |
path_name |
string |
A string representing the location of the folder if it is nested. Each parent folder is separated by |
updated_at |
date_time |
UTC time at which the folder was updated |
Can Include
| Parameter | Value | Description | Assignable |
|---|---|---|---|
| include | resources | include associated resources |
Order By
| Parameter | Value | Type | Description |
|---|---|---|---|
| order | ancestry | string | prefix with a hyphen (-ancestry) to reverse the order |
| order | created_at | string | prefix with a hyphen (-created_at) to reverse the order |
| order | name | string | prefix with a hyphen (-name) to reverse the order |
| order | updated_at | string | prefix with a hyphen (-updated_at) to reverse the order |
Query By
| Name | Parameter | Type | Description | Example |
|---|---|---|---|---|
| ancestry | where[ancestry] |
string | Query on a specific ancestry |
?where[ancestry]=string |
| created_at | where[created_at] |
date_time | Query on a specific created_at |
?where[created_at]=2000-01-01T12:00:00Z |
| name | where[name] |
string | Query on a specific name |
?where[name]=string |
| path_name | where[path_name] |
string | Query on a specific path_name |
?where[path_name]=string |
| updated_at | where[updated_at] |
date_time | Query on a specific updated_at |
?where[updated_at]=2000-01-01T12:00:00Z |
Pagination
| Name | Parameter | Type | Description |
|---|---|---|---|
| per_page | per_page | integer | how many records to return per page (min=1, max=100, default=25) |
| offset | offset | integer | get results from given offset |
Endpoints
Listing
| HTTP Method | Endpoint |
|---|---|
| GET | /calendar/v2/resource_folders |
Reading
| HTTP Method | Endpoint |
|---|---|
| GET | /calendar/v2/resource_folders/{id} |
Creating
| HTTP Method | Endpoint | Assignable Attributes |
|---|---|---|
| POST | /calendar/v2/resource_folders |
|
Updating
| HTTP Method | Endpoint | Assignable Attributes |
|---|---|---|
| PATCH | /calendar/v2/resource_folders/{id} |
|
Deleting
| HTTP Method | Endpoint |
|---|---|
| DELETE | /calendar/v2/resource_folders/{id} |
Associations
| HTTP Method | Endpoint | Returns | Details | Filter By |
|---|---|---|---|---|
| GET | https://api.planningcenteronline.com/calendar/v2/resource_folders/{resource_folder_id}/resources |
Resource |
Belongs To
| HTTP Method | Endpoint | Association | Details | Filter By |
|---|---|---|---|---|
| GET | https://api.planningcenteronline.com/calendar/v2/resource_folders |
Organization |
|
|
| GET | https://api.planningcenteronline.com/calendar/v2/resources/{resource_id}/resource_folder |
Resource |