ResourceQuestion
A question to answer when requesting to book a room or resource.
Example Request
curl https://api.planningcenteronline.com/calendar/v2/resource_questions
Example Object
{
"type": "ResourceQuestion",
"id": "1",
"attributes": {
"choices": "string",
"created_at": "2000-01-01T12:00:00Z",
"description": "string",
"kind": "string",
"multiple_select": true,
"optional": true,
"position": 1,
"question": "string",
"updated_at": "2000-01-01T12:00:00Z"
},
"relationships": {
"resource": {
"data": {
"type": "Resource",
"id": "1"
}
}
}
}
Attributes
| Name | Type | Description |
|---|---|---|
choices |
string |
If |
created_at |
date_time |
UTC time at which the question was created |
description |
string |
Optional description of the question |
id |
primary_key |
Unique identifier for the question |
kind |
string |
Possible values:
-
|
multiple_select |
boolean |
If |
optional |
boolean |
|
position |
integer |
Position of question in list in the UI |
question |
string |
The question to be answered |
updated_at |
date_time |
UTC time at which the question was updated |
Relationships
| Name | Type | Association Type | Note |
|---|---|---|---|
| resource | Resource | to_one |
Query By
| Name | Parameter | Type | Description | Example |
|---|---|---|---|---|
| created_at | where[created_at] |
date_time | Query on a specific created_at |
?where[created_at]=2000-01-01T12:00:00Z |
| kind | where[kind] |
string | Query on a specific kind |
?where[kind]=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_questions |
Reading
| HTTP Method | Endpoint |
|---|---|
| GET | /calendar/v2/resource_questions/{id} |
Creating
| HTTP Method | Endpoint | Assignable Attributes |
|---|---|---|
| POST | /calendar/v2/resources/{resource_id}/resource_questions |
|
Updating
| HTTP Method | Endpoint | Assignable Attributes |
|---|---|---|
| PATCH | /calendar/v2/resource_questions/{id} |
|
Deleting
| HTTP Method | Endpoint |
|---|---|
| DELETE | /calendar/v2/resource_questions/{id} |
Belongs To
| HTTP Method | Endpoint | Association | Details | Filter By |
|---|---|---|---|---|
| GET | https://api.planningcenteronline.com/calendar/v2/resource_questions |
Organization | ||
| GET | https://api.planningcenteronline.com/calendar/v2/resources/{resource_id}/resource_questions |
Resource |