The Shift Series Object
A series describes how a shift repeats. The individual shifts it produces are ordinary Shift objects, each one pointing back at the series it came from.
Attributes
id
uuid
The series.
opportunity_role
uuid
The opportunity the series belongs to.
status
string
active while it is still generating, ended once it has stopped.
starts_at
datetime
The first occurrence, and the anchor the recurrence counts from.
ends_at
datetime or null
When the series stops. null means open-ended.
recurrence
object
The repeat rule.
repeats
string
The rule in plain English, for example Every week on Tue, Thu, open-ended.
generated_through_at
datetime
How far ahead Vome has created real shifts so far.
future_active_shifts_count
integer
Upcoming shifts that exist right now.
total_shifts_count
integer
Every shift the series has ever produced.
active_enrollments_count
integer
Volunteers currently committed to the series.
customized_shifts_count
integer
Shifts somebody edited individually. See below.
pending_exceptions_count
integer
Occurrences skipped or changed before they were generated.
shift_title
string
The title the series gives each shift.
opportunity_role_title
string
The opportunity, as it is called in Vome.
opportunity_title
string
The category the opportunity sits in.
timezone
string
The zone the series is read in.
sites
array
Sites the series is linked to.
Sample
Customized shifts and pending exceptions
These two counts answer different questions, and both matter before you edit a series.
customized_shifts_count counts shifts that already exist and that somebody edited on their own, for example changing the spots on one Thursday. Those shifts keep their edits: a later series-wide edit skips them, the way a single changed meeting in Outlook keeps its change. Pass clear_overrides on an edit to pull them back in line.
pending_exceptions_count counts occurrences that were cancelled or changed before Vome generated them. They are applied when the date comes around.