Skip to content

Commit

Permalink
Add Teams to Schedule
Browse files Browse the repository at this point in the history
Nor the API docs, nor the current code says so, but Schedule can take a
team (or more than one). Add this by using an APIReference slice.

Signed-off-by: Miek Gieben <[email protected]>
  • Loading branch information
miekg committed Mar 3, 2020
1 parent 6b8c6ec commit 63eadd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type Schedule struct {
Description string `json:"description,omitempty"`
EscalationPolicies []APIObject `json:"escalation_policies,omitempty"`
Users []APIObject `json:"users,omitempty"`
Teams []APIReference `json:"teams,omitempty"`
ScheduleLayers []ScheduleLayer `json:"schedule_layers,omitempty"`
OverrideSubschedule ScheduleLayer `json:"override_subschedule,omitempty"`
FinalSchedule ScheduleLayer `json:"final_schedule,omitempty"`
Expand Down

0 comments on commit 63eadd8

Please sign in to comment.