ServiceTime
A ServiceTime Resource
Example Request
curl https://api.planningcenteronline.com/people/v2/campuses/{campus_id}/service_times
View in API Explorer →
Example Object
{
"type": "ServiceTime",
"id": "1",
"attributes": {
"day": "value",
"description": "string",
"start_time": 1
},
"relationships": {
"organization": {
"data": {
"type": "Organization",
"id": "1"
}
},
"campus": {
"data": {
"type": "Campus",
"id": "1"
}
}
}
}
Attributes
| Name |
Type |
Description |
day |
string |
Possible values: `sunday`, `monday`, `tuesday`, `wednesday`, `thursday`, `friday`, or `saturday` |
description |
string |
|
id |
primary_key |
|
start_time |
integer |
|
Relationships
| Name |
Type |
Association Type |
Note |
| organization |
Organization |
to_one |
|
| campus |
Campus |
to_one |
|
Order By
| Parameter |
Value |
Type |
Description |
| order |
time |
string |
prefix with a hyphen (-time) to reverse the order |
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 |
/people/v2/campuses/{campus_id}/service_times |
Reading
| HTTP Method |
Endpoint |
| GET |
/people/v2/campuses/{campus_id}/service_times/{id} |
Creating
| HTTP Method |
Endpoint |
Assignable Attributes |
| POST |
/people/v2/campuses/{campus_id}/service_times |
- start_time
- day
- description
|
Updating
| HTTP Method |
Endpoint |
Assignable Attributes |
| PATCH |
/people/v2/campuses/{campus_id}/service_times/{id} |
- start_time
- day
- description
|
Deleting
| HTTP Method |
Endpoint |
| DELETE |
/people/v2/campuses/{campus_id}/service_times/{id} |
Belongs To
| HTTP Method |
Endpoint |
Association |
Details |
Filter By |
| GET |
https://api.planningcenteronline.com/people/v2/campuses/{campus_id}/service_times |
Campus
|
|
|