Comment on page
Schedules
- Schedules are independent objects. The Team object is responsible for assigning itself a primary schedule and an Escalation Policy.
Property | Type | Description |
---|---|---|
name | string | The name of the schedule |
POST https://api.pagertree.com/api/v4/schedules
def schedule_params
params.permit(
:name
)
end
- name
GET https://api.pagertree.com/api/v4/schedules/:id
PUT https://api.pagertree.com/api/v4/schedules/:id
DELETE https://api.pagertree.com/api/v4/schedules/:id
GET https://api.pagertree.com/api/v4/schedules
DELETE https://api.pagertree.com/api/v4/schedule/:id/flush
Returns on-call event attendees for now. (Handles repeating events and rotations)
GET https://api.pagertree.com/api/v4/schedule/:id/current_oncall
Return on-call event attendees for a specified time frame. (Handles repeating events and rotations)
Query Parameter | Description |
---|---|
start | UTC string of start time to consider (ex: 2022-10-12 07:00:00) |
end | UTC string of end time to consider (ex: 2022-10-12 07:00:00) |
GET https://api.pagertree.com/api/v4/schedule/:id/window_events?start=2022-10-12 07:00:00&end=2022-10-13 07:00:00
Return Events that are assigned to this schedule. (Does not handle repeating events and rotations. Unprocessed representation of events.)
GET https://api.pagertree.com/api/v4/schedules/:id/events
# example with parameters and operators
GET https://api.pagertree.com/api/v4/schedules/:id/events?ops=start_datetime:gte,end_datetime:lte&start_datetime=2022-10-12 07:00:00&end_datetime=2022-10-13 07:00:00
Last modified 11mo ago