The weekly staff rota, shifts filled from classes, copying last week, and time clock settings.
Ask it in plain words
"Copy last week's shifts to next week."
"Fill next week's coach shifts from the class schedule."
get_work_schedule
Staff schedule Reads
The staff schedule for a week: each shift's day, times, hours, person (or Open shift), job, location, draft or published, gratuity rate, cover requests, and for past shifts how the time clock compares (ok, late, early, missed, not-in).
Parameter
Type
Description
week
string
Any day of the week YYYY-MM-DD (default this week)
Adds a draft shift to the staff schedule (owners and managers). It stays a draft until someone publishes the week in the back office, which tells each person their shifts.
Parameter
Type
Description
person
string
The staff member's full name (leave out for an open shift)
dayrequired
string
YYYY-MM-DD
startrequired
string
HH:MM, 24-hour
endrequired
string
HH:MM, 24-hour
location
string
Location name or key (brands with several locations)
job
string
e.g. Front desk, Coach, Party host
gratuity_rate
boolean
Paid at the gratuity (tipped work) rate, as for parties
Change a shift on the staff schedule Changesdry_run
Change a shift on People > Staff schedule (owners and managers): who, the day, times, location, job, note or the gratuity rate. Only what the owner mentions changes. The shift becomes a draft again: nobody is told until someone presses Publish for the week in the back office (that sends each person their shifts).
Parameter
Type
Description
shift_idrequired
string
The id from get_work_schedule
person
string,null
The staff member's full name; null = make it an open shift
day
string
YYYY-MM-DD
start
string
e.g. 9:00 or 4:30 PM
end
string
e.g. 5:00 or 9:30 PM
location
string
Location name or key (brands with several locations)
job
string
e.g. Front desk, Coach, Party host
note
string
A short note on the shift
gratuity_rate
boolean
Paid at the gratuity (tipped work) rate, as for parties
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Remove a shift from the staff schedule Changesdry_runconfirm
Remove a shift from People > Staff schedule (owners and managers). A draft shift is deleted; a published one is marked removed, and the person hears about it only when someone publishes the week in the back office. Needs confirm: true after the owner says yes.
Parameter
Type
Description
shift_idrequired
string
The id from get_work_schedule
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Copy the week before's shifts into a week on People > Staff schedule (owners and managers), as Copy last week does. Shifts already there are skipped. The copies are drafts: nobody is told until the week is published in the back office.
Parameter
Type
Description
weekrequired
string
Any day of the week to fill, YYYY-MM-DD
location
string
Location name or key (brands with several locations; default the first one you work at)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Add shifts for the week's classes and parties Changesdry_run
Add a draft shift for each class and booked party in a week whose coach is a staff member and has no shift yet (owners and managers), as Shifts for classes and parties does on People > Staff schedule. Party shifts use the gratuity rate. Nothing is published or sent.
Parameter
Type
Description
weekrequired
string
Any day of the week, YYYY-MM-DD
location
string
Location name or key (brands with several locations)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The time clock's settings on People > Timesheets (owners): whether staff can clock in, smart reminders, how close counts as at the gym, when clock-in is refused, and the reminder and automatic clock-out hours. Never anyone's hours or pay.
Change the time clock settings Changesdry_runconfirm
Change the time clock settings on People > Timesheets (owners only), as its Time clock settings box does. Only what the owner mentions changes. Turning the clock or the smart reminders off needs confirm: true after the owner says yes. Setting the gym's location needs a phone at the gym, so it stays in the back office.
Parameter
Type
Description
clock_in_on
boolean
Staff can clock in and out
smart_reminders
boolean
A notification when someone is due to clock in or forgot to clock out
at_gym_within_meters
integer
Counts as at the gym within this distance (150 suits most buildings)
refuse_beyond_meters
integer
Clock-in is refused farther than this; in between it's allowed with a note and flagged
remind_to_clock_out_after_hours
integer
Remind someone to clock out after this many hours on the clock (2 to 20)
clock_out_automatically_after_hours
integer
Clock someone out by themselves after this many hours (3 to 24)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.